Comments (1)
I'm including some short term solutions below and we are designing for better looking images in an upcoming release.
The current release is using the native PlantUML sprite format, which is a grayscale image. These sprites have been generated as [64x64/16z]
, which is a 64 x 64 resolution at 16 shades of gray. Then, the sprites are re-colored back with the syntax like <color:#D86613><$Lambda></color>
which is likely whey they don't look appealing.
Also included in the current distribution alongside the .puml
files are 64x64 .png
image files which can be referenced using the creole <img>
syntax. It is possible to customize the size of the icons using the PlantUML {scale=X}
syntax, which works both for the native sprites and png images. Here is an example of that syntax:
participant "<color:#D86613><$Lambda{scale=2}></color>\nLambda"
participant "<img https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist/Compute/Lambda.png{scale=2}>\nLambda"
This image (generated by PlantUML version 2022.5) is each of the Sprite and PNG for Lambda at normal scale, .5 scale, as 2x scale:
Below is the full .puml
for the image above. It also defines a custom $AWSPNGImage
function to make that <img>
generation easier.
@startuml Issue 43
'Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
'SPDX-License-Identifier: MIT (For details, see https://github.com/awslabs/aws-icons-for-plantuml/blob/master/LICENSE)
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist
!include AWSPuml/AWSCommon.puml
!include AWSPuml/Compute/Lambda.puml
!function $AWSPNGImage($img, $scale=1)
!return "<img " + AWSPuml + "/" + $img + "{scale=" + $scale + "}>"
!endfunction
'Hide the bottom boxes
hide footbox
actor User as user
participant "<color:#D86613><$Lambda></color>\nLambda" as lambda1
participant "<color:#D86613><$Lambda{scale=.5}></color>\nLambda" as lambda2
participant "<color:#D86613><$Lambda{scale=2}></color>\nLambda" as lambda3
participant "$AWSPNGImage(Compute/Lambda.png)\nLambda" as lambda4
participant "$AWSPNGImage(Compute/Lambda.png,.5)\nLambda" as lambda5
participant "$AWSPNGImage(Compute/Lambda.png,2)\nLambda" as lambda6
user -> lambda1: colored sprite
user -> lambda2: colored sprite (scale .5)
user -> lambda3: colored sprite (scale 2)
user -> lambda4: png
user -> lambda5: png (scale .5)
user -> lambda6: png (scale 2)
@enduml
from aws-icons-for-plantuml.
Related Issues (20)
- 404 Not Found HOT 1
- SecurityGroup puml doesnot work HOT 1
- Including General/Globe.puml results in a syntax error HOT 2
- Please add AwS Location Service puml/image HOT 6
- Define variable in puml files to reference color HOT 6
- AWSSimplified.puml should also take into account sequence diagrams HOT 5
- Request: Overlapping Groups HOT 2
- Request: List of content HOT 2
- Can we add the GraphQL icon to the overall set? HOT 5
- Question: Is it possible to generate fully scalable (SVG) diagrams? HOT 1
- Question: how can I modify the default label on Groups elements? HOT 2
- Support theming: (Example: Border color is hardcoded to gray) HOT 2
- Update to Release 17-2023.10.23 of AWS Architecture Icons
- VSCODE Reder Errror HOT 11
- Full list of the available icons HOT 1
- It's always dark mode even no dark mode is specified HOT 8
- Syntax error for ApplicationIntegration/{all,EventBridge*}.puml HOT 2
- [Wanted feature][Refactor] Could you optimize all the `all.puml` files
- Update to Release 18-2024.02.06 of AWS Architecture Icons HOT 1
- 404 https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v18.0/dist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-icons-for-plantuml.