MoveText.js 364 B

12345678910111213141516
  1. import { dataService } from "../Service/DataService";
  2. import { mathUtil } from "../Util/MathUtil";
  3. export default class MoveText {
  4. constructor() {}
  5. moveFullText(position, textId) {
  6. let text = dataService.getText(textId);
  7. if (text) {
  8. mathUtil.clonePoint(text.center, position);
  9. }
  10. }
  11. }
  12. const moveText = new MoveText();
  13. export { moveText };