extend-display-object.js 313 B

12345678
  1. import { isNumber, isString } from '@antv/util';
  2. import { Text } from '../shapes';
  3. export function renderExtDo(el) {
  4. if (typeof el === 'function')
  5. return el();
  6. return isString(el) || isNumber(el) ? new Text({ style: { text: String(el) } }) : el;
  7. }
  8. //# sourceMappingURL=extend-display-object.js.map