ClockItem.vue 634 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <canvas id="clockItem1" width="400" height="400" />
  3. </template>
  4. <script lang="ts">
  5. import { SGraphItem, SGraphScene, SGraphView, SGraphClockItem } from "@persagy-web/graph";
  6. import { SPainter } from "@persagy-web/draw/lib";
  7. class TestView extends SGraphView {
  8. clock1 = new SGraphClockItem(null, 300, 300);
  9. constructor() {
  10. super("clockItem1");
  11. this.scene = new SGraphScene();
  12. this.scene.addItem(this.clock1);
  13. }
  14. }
  15. export default {
  16. mounted(): void {
  17. new TestView();
  18. }
  19. }
  20. </script>
  21. <style scoped>
  22. </style>