SGraphCommand.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * ********************************************************************************************************************
  3. *
  4. * :*$@@%$*: ;: ;; ;;
  5. * :@@%! :!@@%: %! ;%%@@%$ =@@@@@@@%; @%@@@%%%%@@@@@
  6. * :@%; :$= %%$$$%$$ ;$$ ;$@= !@$
  7. * =@! %! @ $=;% !@@@%: !$$$$$$$$$$$$$$=
  8. * =@* %! @ $= % %@= =%@! %=
  9. * *$%%! @@= ;=$%%%$*: %! @ $= % =%%%%%%@$ *%: =%
  10. * %@@!: !@@@%=$@@@@%! :*@@$: %! @ $= % $* ;@ @* :%*
  11. * ;@@! ;!!!;: ;@%: =======@%========* @ $$ % $%*****$@ :@$=*********=@$
  12. * $@* ;@@@%=!: *@*
  13. * =@$ ;;;!=%@@@@=! =@!
  14. * %@$: =@%: :*@@@* %@= Copyright (c) 2016-2019. 北京上格云技术有限公司
  15. * ;%@@$=$@@%* *@@@$=%@@%;
  16. * ::;:: ::;:: All rights reserved.
  17. *
  18. * ********************************************************************************************************************
  19. */
  20. import { SUndoCommand } from "@saga-web/base/lib";
  21. import { SGraphScene } from "../SGraphScene";
  22. /**
  23. * Graph命令基类
  24. *
  25. * @author 庞利祥(sybotan@126.com)
  26. */
  27. export abstract class SGraphCommand extends SUndoCommand {
  28. /** 命令所属的场景类 */
  29. scene: SGraphScene | null = null;
  30. /**
  31. * 构造函数
  32. *
  33. * @param scene 命令所属的场景类
  34. */
  35. protected constructor(scene: SGraphScene | null) {
  36. super();
  37. this.scene = scene;
  38. } // Constructor
  39. } // Class SGraphCommand