| 12345678910111213141516171819202122232425262728 |
- var zrUtil = require("zrender/lib/core/util");
- function _default(coordSys) {
- var rect = coordSys.getRect();
- var rangeInfo = coordSys.getRangeInfo();
- return {
- coordSys: {
- type: 'calendar',
- x: rect.x,
- y: rect.y,
- width: rect.width,
- height: rect.height,
- cellWidth: coordSys.getCellWidth(),
- cellHeight: coordSys.getCellHeight(),
- rangeInfo: {
- start: rangeInfo.start,
- end: rangeInfo.end,
- weeks: rangeInfo.weeks,
- dayCount: rangeInfo.allDay
- }
- },
- api: {
- coord: zrUtil.bind(coordSys.dataToPoint, coordSys)
- }
- };
- }
- module.exports = _default;
|