Skip to content

Commit

Permalink
Removed Anchor class.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Nov 22, 2024
1 parent a810738 commit a41d9f0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 94 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineComponent } from "vue";
import sequenceParser from "@/generated-parser/sequenceParser";
import { OCCURRENCE_BAR_SIDE_WIDTH } from "@/positioning/Constants";
import Anchor from "@/positioning/Anchor";
import { mapGetters } from "vuex";
import Anchor2 from "@/positioning/Anchor2";
// Define the context type
Expand Down Expand Up @@ -41,15 +40,6 @@ export default defineComponent({

computed: {
...mapGetters(["centerOf"]),
anchorOrigin: function (): Anchor {
return new Anchor(this.centerOf(this.origin), this.originOffset);
},
anchorSource: function (): Anchor {
return new Anchor(this.centerOf(this.source), this.sourceOffset);
},
anchorTarget: function (): Anchor {
return new Anchor(this.centerOf(this.target), this.targetOffset);
},
originLayers: function (): number {
return this.depthOnParticipant(this.origin);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import { mapGetters } from "vuex";
import { CodeRange } from "@/parser/CodeRange";
import ArrowMixin from "@/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/ArrowMixin";
import { DirectionMixin } from "@/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Statement/DirectionMixin";
import Anchor from "@/positioning/Anchor";

function isNullOrUndefined(value) {
return value === null || value === undefined;
Expand Down Expand Up @@ -136,15 +135,6 @@ export default {
outOfBand: function () {
return this.source !== this.origin;
},
anchorOrigin: function () {
return new Anchor(this.centerOf(this.origin), this.originOffset);
},
anchorSource: function () {
return new Anchor(this.centerOf(this.source), this.sourceOffset);
},
anchorTarget: function () {
return new Anchor(this.centerOf(this.target), this.targetOffset);
},
// Both 'left' and 'translateX' can be used to move the element horizontally.
// Change it to use translate according to https://stackoverflow.com/a/53892597/529187.
translateX: function () {
Expand Down
59 changes: 0 additions & 59 deletions src/positioning/Anchor.spec.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/positioning/Anchor.ts

This file was deleted.

0 comments on commit a41d9f0

Please sign in to comment.