Skip to content

Commit

Permalink
Refactor ArrowMixin and update Participant icon style and theme colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Nov 21, 2024
1 parent 89698f0 commit 887704d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/assets/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
.theme-nab {
--color-bg-base: 242, 244, 246;
--color-bg-canvas: 242, 244, 246;
--color-text-base: #ffffff;

/* Participant */
--color-bg-participant: 195, 0, 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<div
v-html="icon"
class="text-skin-base bg-skin-participant px-1 absolute rounded left-1/2 transform -translate-x-1/2 h-8 [&>svg]:w-full [&>svg]:h-full"
class="text-skin-base bg-skin-base px-1 absolute rounded left-1/2 transform -translate-x-1/2 h-8 [&>svg]:w-full [&>svg]:h-full"
:aria-description="`icon for ${entity.name}`"
></div>
</div>
Expand All @@ -30,7 +30,7 @@
<div
v-if="!!icon"
v-html="icon"
class="text-skin-base bg-skin-participant px-1 absolute rounded left-1/2 transform -translate-x-1/2 -translate-y-full h-8 [&>svg]:w-full [&>svg]:h-full"
class="text-skin-base bg-skin-base px-1 absolute rounded left-1/2 transform -translate-x-1/2 -translate-y-full h-8 [&>svg]:w-full [&>svg]:h-full"
:aria-description="`icon for ${entity.name}`"
></div>
<!-- Put in a div to give it a fixed height, because stereotype is dynamic. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import sequenceParser from "@/generated-parser/sequenceParser";
import { _STARTER_ } from "@/parser/OrderedParticipants";
import { LIFELINE_WIDTH } from "@/positioning/Constants";
import Anchor from "@/positioning/Anchor";
import { mapGetters } from "vuex";
// Define interfaces for your properties
interface BorderWidthStyle {
borderLeftWidth: string;
Expand Down Expand Up @@ -45,6 +46,7 @@ export default defineComponent({
},

computed: {
...mapGetters(["centerOf"]),
anchorOrigin: function (): Anchor {
return new Anchor(this.centerOf(this.origin), this.originOffset);
},
Expand Down

0 comments on commit 887704d

Please sign in to comment.