From 523793d0fa64acbb9a04403a5c6054941a5296d0 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 5 Oct 2024 15:00:41 +0200 Subject: cleanup + sync design with crepe `loek/audio` source branch --- img/facade-audio.puml | 23 ++++++++++------------- img/theme.ipuml | 17 +++++++++++++++-- 2 files changed, 25 insertions(+), 15 deletions(-) (limited to 'img') diff --git a/img/facade-audio.puml b/img/facade-audio.puml index 6749915..60af60f 100644 --- a/img/facade-audio.puml +++ b/img/facade-audio.puml @@ -2,14 +2,11 @@ !include theme.ipuml skinparam Linetype ortho - package crepe { - package api { - class Resource <> - } + class Asset <> class Sound { - +Sound(resource) + +Sound(asset) -- +pause() +play() @@ -20,7 +17,7 @@ package crepe { -sample : SoLoud::Wav -handle : SoLoud::handle -- - -load(resource) + -load(asset) } class SoundContext <> { @@ -31,6 +28,11 @@ package crepe { -- -engine : SoLoud::Soloud } + + Sound .> SoundContext + SoundContext .> Sound + + Sound .left> Asset } package SoLoud { @@ -38,15 +40,10 @@ package SoLoud { class Wav <> } -' layout -crepe -[hidden]down- SoLoud - crepe.Sound --> SoLoud.Wav crepe.SoundContext --> SoLoud.Soloud -crepe.Sound .> crepe.SoundContext -crepe.SoundContext .> crepe.Sound - -crepe.Sound .> crepe.api.Resource +' LAYOUT +crepe -[hidden]down- SoLoud @enduml diff --git a/img/theme.ipuml b/img/theme.ipuml index f716ddf..ae3b1c7 100644 --- a/img/theme.ipuml +++ b/img/theme.ipuml @@ -1,13 +1,26 @@ +' vim:ft=plantuml + !theme plain skinparam ClassAttributeIconSize 0 skinparam ClassFontStyle bold skinparam DefaultFontName Inter -skinparam DefaultFontSize 14 +skinparam DefaultFontSize 10 skinparam MaxMessageSize 200 skinparam Nodesep 25 -skinparam Padding 2 +' skinparam Padding 0 skinparam Ranksep 50 skinparam RoundCorner 0 +skinparam PackageStyle rectangle +skinparam PackageFontStyle italic + +hide class circle +' class <> for third-party classes hide <> stereotype hide <> members + +' rectangle <> +hide <> stereotype +skinparam Rectangle<>BorderStyle dashed +skinparam Rectangle<>BorderColor gray + -- cgit v1.2.3