(title, body, footer)
| 1589 | describe('text align', function() { |
| 1590 | var defaults = Chart.defaults; |
| 1591 | var makeView = function(title, body, footer) { |
| 1592 | const model = { |
| 1593 | // Positioning |
| 1594 | x: 100, |
| 1595 | y: 100, |
| 1596 | width: 100, |
| 1597 | height: 100, |
| 1598 | xAlign: 'left', |
| 1599 | yAlign: 'top', |
| 1600 | |
| 1601 | options: { |
| 1602 | setContext: () => model.options, |
| 1603 | enabled: true, |
| 1604 | |
| 1605 | padding: 5, |
| 1606 | |
| 1607 | // Body |
| 1608 | bodyFont: { |
| 1609 | family: defaults.font.family, |
| 1610 | style: defaults.font.style, |
| 1611 | size: defaults.font.size, |
| 1612 | }, |
| 1613 | bodyColor: '#fff', |
| 1614 | bodyAlign: body, |
| 1615 | bodySpacing: 2, |
| 1616 | |
| 1617 | // Title |
| 1618 | titleFont: { |
| 1619 | family: defaults.font.family, |
| 1620 | weight: 'bold', |
| 1621 | size: defaults.font.size, |
| 1622 | }, |
| 1623 | titleColor: '#fff', |
| 1624 | titleAlign: title, |
| 1625 | titleSpacing: 2, |
| 1626 | titleMarginBottom: 6, |
| 1627 | |
| 1628 | // Footer |
| 1629 | footerFont: { |
| 1630 | family: defaults.font.family, |
| 1631 | weight: 'bold', |
| 1632 | size: defaults.font.size, |
| 1633 | }, |
| 1634 | footerColor: '#fff', |
| 1635 | footerAlign: footer, |
| 1636 | footerSpacing: 2, |
| 1637 | footerMarginTop: 6, |
| 1638 | |
| 1639 | // Appearance |
| 1640 | caretSize: 5, |
| 1641 | cornerRadius: 6, |
| 1642 | caretPadding: 2, |
| 1643 | borderColor: '#aaa', |
| 1644 | borderWidth: 1, |
| 1645 | backgroundColor: 'rgba(0,0,0,0.8)', |
| 1646 | multiKeyBackground: '#fff', |
| 1647 | displayColors: false |
| 1648 |
no outgoing calls
no test coverage detected