Giter Site home page Giter Site logo

Comments (5)

martinicr avatar martinicr commented on May 18, 2024 1

Go to this page. Then look for the $link property. You will see how this property can be used in several C4 components.

from azure-plantuml.

Potherca avatar Potherca commented on May 18, 2024

Hi! I am not familiar with $link. Could you post an example diagram of how it is used, or a link to the relevant PlantUML documentation?

from azure-plantuml.

Potherca avatar Potherca commented on May 18, 2024

I think I understand what you mean... Are you trying to use $link like this: AzureServiceFabric(Alias, "Label "Technology", $link="https://example.com")?

Or to place it in a more real world context:

@startuml
!$AzurePuml='https://raw.githubusercontent.com/plantuml-stdlib/Azure-PlantUML/release/2-1/dist'
!include $AzurePuml/AzureCommon.puml
!include $AzurePuml/Compute/AzureServiceFabric.puml

AzureServiceFabric(Alias, "Label "Technology", $link="https://example.com")
@enduml

from azure-plantuml.

martinicr avatar martinicr commented on May 18, 2024

You right and sorry for my lack of details on this.

In regular C4 PlantUML, you can add the $link property to several definitions such as this one:

System(twitter, "Twitter", $link="https://github.com/plantuml-stdlib/C4-PlantUML")

So, I tried to do the same with the AzureServiceFabric definition, but I got an error everytime I exported the diagram. I can't see any reference to the $link property in the Azure-PlantUML documentation so I thought chances are this is not supported for this kind of elements.

from azure-plantuml.

Potherca avatar Potherca commented on May 18, 2024

No need for apologies 👍

You are correct, in C4 there was a change in the code to go from ordered parameters1 to named parameters2, as that provides more flexibility3

That functionality has not been implemented in this project, hence the errors.

I could make a ticket to look into implementing such things here (which is a good idea in itself) but I can't really give a timeline in which it would be implemented.

Footnotes

  1. i.e. Foo(a,b,c)

  2. i.e. Foo($a='a', $b='b', $c='c')

  3. Such making easier to support optional parameters and not requiring a fixed order parameters need to be provided in.

from azure-plantuml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.