From 070299387ddeb4a6c7480dcebe9fb7858466c471 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 10 Apr 2022 17:42:53 -0400 Subject: [PATCH] add movable logic in the print components --- .../Output/Print/Hull/Integrity/index.svelte | 24 ++++++++-- .../components/Output/Print/Hull/index.svelte | 3 ++ .../Output/Print/MainSystems/index.svelte | 47 ++++++++++++++----- .../Output/Print/Print.stories.svelte | 30 ++++++++---- .../Print/Systems/Firecons/index.svelte | 23 +++++++-- .../Output/Print/Systems/Screens/index.svelte | 25 ++++++++-- .../Output/Print/Systems/index.svelte | 5 +- .../Output/Print/Weapons/Beam/index.svelte | 15 +++++- .../Output/Print/Weapons/index.svelte | 7 ++- src/lib/components/Output/Print/index.svelte | 19 +++++--- 10 files changed, 151 insertions(+), 47 deletions(-) diff --git a/src/lib/components/Output/Print/Hull/Integrity/index.svelte b/src/lib/components/Output/Print/Hull/Integrity/index.svelte index 680eac9..4aa042f 100644 --- a/src/lib/components/Output/Print/Hull/Integrity/index.svelte +++ b/src/lib/components/Output/Print/Hull/Integrity/index.svelte @@ -1,4 +1,12 @@ -
+
{ + ship.dispatch.setUITransform({ system: "hull", translate }); + }} + style:transform={hull?.uiTransform} +> {#each rows as row, i (i)}
{#each row as threshold, j (j)} @@ -13,10 +21,18 @@