UNPKG

647 BJavaScriptView Raw
1export default class LayoutInfo {
2
3 /**
4 * @param {number} width
5 * @param {number} height
6 * @param {number} connectorOffset
7 */
8 constructor(width, height, connectorOffset) {
9 this.width = width;
10 this.height = height;
11 this.connectorOffset = connectorOffset;
12 }
13
14 /**
15 * @return {number}
16 */
17 getWidth() {
18 return this.width;
19 }
20
21 /**
22 * @return {number}
23 */
24 getHeight() {
25 return this.height;
26 }
27
28 /**
29 * @return {number}
30 */
31 getConnectorOffset() {
32 return this.connectorOffset;
33 }
34
35}