Skip to content

Update wireviz version to latest #1779

@rwarren

Description

@rwarren

Kroki currently uses wireviz v0.3.3 (which is not even an official version... see below). The latest version is v0.4.1. Updating would be very nice.


More detail...

The wireviz version currently in use is v0.3.3, per this line:

ARG WIREVIZ_VERSION="0.3.3"

Curiously, v0.3.3 is not even an official wireviz tag!? Officail Wireviz versions jump from v0.3.2 to v0.4, so I'm not sure how v0.3.3 works.

The latest version of wireviz is v0.4.1, and it contains some significant, and long awaited, features.

NOTE: You can't even run basic wireviz tutorials with the v0.3.x version included with Kroki! For example the syntax for this wireviz tutorial currently fails with the syntax below (also available at the kroki.io renderer here):

connectors:
  X1:
    pinlabels: [+12V, GND, GND, +5V]
    type: Molex 8981
    subtype: female
  F1:
    style: simple
    type: Crimp ferrule
    subtype: 0.5 mm²
    color: OG # optional color

cables:
  W1:
    category: bundle # bundle
    length: 0.3
    gauge: 0.5 mm2
    colors: [YE, BK, BK, RD] # custom colors, wirecount is implicit

connections:
  -
    - F1. # a new ferrule is auto-generated for each of the four wires
    - W1: [1-4]
    - X1: [1-4]

The problem is the relatively new syntax in connections: with F1.. Drop the . and it renders... but not as it should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions