| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 | /*! Rappid v2.4.0 - HTML5 Diagramming Framework - TRIAL VERSIONCopyright (c) 2015 client IO 2019-01-09 This Source Code Form is subject to the terms of the Rappid Trial License, v. 2.0. If a copy of the Rappid License was not distributed with thisfile, You can obtain one at http://jointjs.com/license/rappid_v2.txt or from the Rappid archive as was distributed by client IO. See the LICENSE file.*/(function(joint) {    'use strict';    joint.shapes.standard.Ellipse.define('app.CircularModel', {        attrs: {            root: {                magnet: false            }        },        ports: {            groups: {                'in': {                    markup: [{                        tagName: 'circle',                        selector: 'portBody',                        attributes: {                            'r': 10                        }                    }],                    attrs: {                        portBody: {                            magnet: true,                            fill: '#61549c',                            strokeWidth: 0                        },                        portLabel: {                            fontSize: 11,                            fill: '#61549c',                            fontWeight: 800                        }                    },                    position: {                        name: 'ellipse',                        args: {                            startAngle: 0,                            step: 30                        }                    },                    label: {                        position: {                            name: 'radial',                            args: null                        }                    }                },                'out': {                    markup: [{                        tagName: 'circle',                        selector: 'portBody',                        attributes: {                            'r': 10                        }                    }],                    attrs: {                        portBody: {                            magnet: true,                            fill: '#61549c',                            strokeWidth: 0                        },                        portLabel: {                            fontSize: 11,                            fill: '#61549c',                            fontWeight: 800                        }                    },                    position: {                        name: 'ellipse',                        args: {                            startAngle: 180,                            step: 30                        }                    },                    label: {                        position: {                            name: 'radial',                            args: null                        }                    }                }            }        }    }, {        portLabelMarkup: [{            tagName: 'text',            selector: 'portLabel'        }]    });    joint.shapes.standard.Rectangle.define('app.RectangularModel', {        attrs: {            root: {                magnet: false            }        },        ports: {            groups: {                'in': {                    markup: [{                        tagName: 'circle',                        selector: 'portBody',                        attributes: {                            'r': 10                        }                    }],                    attrs: {                        portBody: {                            magnet: true,                            fill: '#61549c',                            strokeWidth: 0                        },                        portLabel: {                            fontSize: 11,                            fill: '#61549c',                            fontWeight: 800                        }                    },                    position: {                        name: 'left'                    },                    label: {                        position: {                            name: 'left',                            args: {                                y: 0                            }                        }                    }                },                'out': {                    markup: [{                        tagName: 'circle',                        selector: 'portBody',                        attributes: {                            'r': 10                        }                    }],                    position: {                        name: 'right'                    },                    attrs: {                        portBody: {                            magnet: true,                            fill: '#61549c',                            strokeWidth: 0                        },                        portLabel: {                            fontSize: 11,                            fill: '#61549c',                            fontWeight: 800                        }                    },                    label: {                        position: {                            name: 'right',                            args: {                                y: 0                            }                        }                    }                }            }        }    }, {        portLabelMarkup: [{            tagName: 'text',            selector: 'portLabel'        }]    });})(joint);
 |