Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ export const SingleDirection: Story = {
},
};

export const SingleDirectionWithPropellers: Story = {
args: {
singleDirection: true,
thrust: 50,
setpoint: 30,
state: InstrumentState.active,
priority: Priority.enhanced,
topPropeller: PropellerType.single,
bottomPropeller: PropellerType.cap,
},
};
Comment thread
tibnor marked this conversation as resolved.

export const SingleDirectionSingleSidedWithAdvice: Story = {
args: {
singleDirection: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -756,12 +756,17 @@ export function thruster(
let viewBox = '-80 -160 160 320';
let y = -160;
if (options.singleDirection) {
viewBox = '-80 -300 160 320';
y = -320;
if (options.bottomPropeller !== PropellerType.none) {
viewBox = '-80 -300 160 356';
y = -320;
} else {
viewBox = '-80 -300 160 320';
y = -320;
}
}
const top = topPropeller(height, tc.arrowColor, options.topPropeller);
const bottom = bottomPropeller(
options.singleDirectionHalfSize ? 0.5 : height,
options.singleDirectionHalfSize || options.singleDirection ? 0.5 : height,
options.bottomPropeller
);
return svg`
Expand Down
Loading