constant.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.CHECKED_SHAPE_STYLE = exports.CHECKBOX_RECT_STYLE = exports.LABEL_TEXT_STYLE = void 0;
  4. var util_1 = require("../../util");
  5. // 默认文本样式
  6. exports.LABEL_TEXT_STYLE = (0, util_1.superStyleProps)({
  7. fill: 'rgba(0,0,0,0.45)',
  8. fontSize: 10,
  9. textAlign: 'start',
  10. textBaseline: 'middle',
  11. overflow: 'clip',
  12. }, 'label');
  13. exports.CHECKBOX_RECT_STYLE = {
  14. default: {
  15. width: 12,
  16. height: 12,
  17. radius: 2,
  18. stroke: '#dadada',
  19. lineWidth: 1,
  20. fill: '#ffffff',
  21. cursor: 'pointer',
  22. },
  23. selected: {
  24. width: 12,
  25. height: 12,
  26. radius: 2,
  27. stroke: '#3471F9',
  28. lineWidth: 1,
  29. fill: '#3471F9',
  30. cursor: 'pointer',
  31. },
  32. };
  33. var CHECKED_SHAPE_PATH = [
  34. ['M', 3, 6],
  35. ['L', '5', '8.5'],
  36. ['L', '8.5', '4'],
  37. ];
  38. exports.CHECKED_SHAPE_STYLE = {
  39. path: CHECKED_SHAPE_PATH,
  40. lineWidth: 1,
  41. cursor: 'pointer',
  42. };
  43. //# sourceMappingURL=constant.js.map