all files / diagram/load-utility/visio-import-export/ visio-models.js

95.51% Statements 149/156
100% Branches 0/0
81.25% Functions 26/32
95.51% Lines 149/156
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190   1590× 1590× 1590× 1590× 1590×     1590× 1590×     1592× 1592× 1592× 1592× 1592× 1592× 1592× 1592× 1592× 1592× 1592×     176× 176× 176× 176× 176× 176×     113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113× 113×     370×         163× 163× 163× 163× 163× 163× 163× 163× 163×         437×     168× 168× 168× 168× 168× 168× 168× 168× 168× 168×   63× 63× 63× 63× 63× 63× 63× 63× 63× 63× 63× 63× 63×                                      
define(["require", "exports", "./visio-nodes"], function (require, exports, visio_nodes_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var VisioNodeStyle = (function () {
        function VisioNodeStyle() {
            this.opacity = 1;
            this.strokeWidth = 1;
            this.isGradientEnabled = false;
            this.gradientType = 'Linear';
            this.gradientAngle = 0;
        }
        return VisioNodeStyle;
    }());
    exports.VisioNodeStyle = VisioNodeStyle;
    var VisioNodeShadow = (function () {
        function VisioNodeShadow() {
            this.shadowPattern = false;
            this.shadowOpacity = 1;
        }
        return VisioNodeShadow;
    }());
    exports.VisioNodeShadow = VisioNodeShadow;
    var VisioShape = (function () {
        function VisioShape() {
            this.id = '';
            this.type = 'Shape';
            this.offsetX = 0;
            this.offsetY = 0;
            this.width = 0;
            this.height = 0;
            this.pivotX = 0.5;
            this.pivotY = 0.5;
            this.rotateAngle = 0;
            this.cornerRadius = 0;
            this.visibility = true;
        }
        return VisioShape;
    }());
    exports.VisioShape = VisioShape;
    var VisioWindow = (function () {
        function VisioWindow() {
            this.showRulers = false;
            this.showGrid = false;
            this.showPageBreaks = false;
            this.showGuides = false;
            this.showConnectionPoints = false;
            this.dynamicGridEnabled = false;
        }
        return VisioWindow;
    }());
    exports.VisioWindow = VisioWindow;
    var VisioPage = (function () {
        function VisioPage() {
            this.pageWidth = 0;
            this.pageHeight = 0;
            this.backPage = 0;
            this.fillColor = '';
            this.isBackgroundPage = false;
            this.shdwOffsetX = 0;
            this.shdwOffsetY = 0;
            this.pageScale = 0;
            this.drawingScale = 0;
            this.drawingSizeType = 0;
            this.drawingScaleType = 0;
            this.uiVisibility = 0;
            this.shdwType = 0;
            this.shdwObliqueAngle = 0;
            this.shdwScaleFactor = 0;
            this.drawingResizeType = 0;
            this.pageShapeSplit = false;
            this.printPageOrientation = 0;
            this.layers = [];
            this.bridging = 1;
            this.horizontalBridgeSpace = 0.6667;
            this.verticalBridgeSpace = 0.6667;
            this.variationStyleIndex = 0;
            this.lineRouteExt = '0';
            this.routeStyle = '0';
            this.inhibitSnap = false;
            this.pageLockReplace = false;
            this.pageLockDuplicate = false;
        }
        return VisioPage;
    }());
    exports.VisioPage = VisioPage;
    var VisioMaster = (function () {
        function VisioMaster() {
            this.id = '';
        }
        return VisioMaster;
    }());
    exports.VisioMaster = VisioMaster;
    var VisioTheme = (function () {
        function VisioTheme() {
        }
        return VisioTheme;
    }());
    exports.VisioTheme = VisioTheme;
    var VisioDocumentSettings = (function () {
        function VisioDocumentSettings() {
            this.glueSettings = 0;
            this.snapSettings = 0;
            this.snapExtensions = 0;
            this.snapAngles = 0;
            this.dynamicGridEnabled = false;
            this.protectStyles = false;
            this.protectShapes = false;
            this.protectMasters = false;
            this.protectBkgnds = false;
        }
        return VisioDocumentSettings;
    }());
    exports.VisioDocumentSettings = VisioDocumentSettings;
    var VisioConnectionData = (function () {
        function VisioConnectionData() {
        }
        return VisioConnectionData;
    }());
    exports.VisioConnectionData = VisioConnectionData;
    var VisioRelationship = (function () {
        function VisioRelationship() {
            this.media = [];
        }
        return VisioRelationship;
    }());
    exports.VisioRelationship = VisioRelationship;
    var VisioDiagramData = (function () {
        function VisioDiagramData() {
            this.windows = [];
            this.pages = [];
            this.masters = [];
            this.shapes = [];
            this.connectors = [];
            this.connections = [];
            this.themes = [];
            this.expandedSubprocessCollection = [];
            this.relations = [];
            this.medias = {};
        }
        VisioDiagramData.prototype.clear = function () {
            this.windows = [];
            this.pages = [];
            this.masters = [];
            this.shapes = [];
            this.connectors = [];
            this.documentSettings = undefined;
            this.connections = [];
            this.themes = [];
            this.currentPage = undefined;
            this.currentTheme = undefined;
            this.expandedSubprocessCollection = [];
            this.relations = [];
            visio_nodes_1.shapeIndex.value = 0;
        };
        return VisioDiagramData;
    }());
    exports.VisioDiagramData = VisioDiagramData;
    var VisioStyleModel = (function () {
        function VisioStyleModel() {
            this.strokeWidth = 0;
            this.opacity = 0;
        }
        return VisioStyleModel;
    }());
    exports.VisioStyleModel = VisioStyleModel;
    var VisioDecoratorStyleModel = (function () {
        function VisioDecoratorStyleModel() {
            this.opacity = 0;
            this.strokeWidth = 0;
            this.isGradientEnabled = false;
            this.gradientType = 'Linear';
            this.gradientAngle = 0;
        }
        return VisioDecoratorStyleModel;
    }());
    exports.VisioDecoratorStyleModel = VisioDecoratorStyleModel;
    var VisioDecoratorModel = (function () {
        function VisioDecoratorModel() {
        }
        return VisioDecoratorModel;
    }());
    exports.VisioDecoratorModel = VisioDecoratorModel;
    var VisioConnections = (function () {
        function VisioConnections() {
        }
        return VisioConnections;
    }());
    exports.VisioConnections = VisioConnections;
});