Skip to content

Overlapping arrows in cycle #140

@bernsteining

Description

@bernsteining

The following code snippet which is a modification of the cycle example from the gallery has an unintended behaviour:

#import "@preview/cetz:0.4.0"
#import "@preview/cetz-plot:0.1.2": plot, chart, smartart

#let points = (
  [$O$],
  [$P$],
  [$2 P$],
  [$3 P$],
  [$...$],
  [$n-1 times P$],
)

#let colors = (
  red,
  orange,
  yellow,
  green,
  blue,
).map(c => c.lighten(40%))

#cetz.canvas({
      smartart.cycle.basic(
        points,
        step-style: colors,
        equal-width: true,
        name: "horloge",
      )
    })
Image

The following project showcases the bug, https://typst.app/project/r6u48e16qLNb69BdjNul4m.

It looks like the [$n-1 times P$] breaks stuff in the rendering.

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