Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I experience problems with drawing dashed lines. #20

Open
Only1Loatheb opened this issue Dec 20, 2020 · 3 comments
Open

I experience problems with drawing dashed lines. #20

Only1Loatheb opened this issue Dec 20, 2020 · 3 comments

Comments

@Only1Loatheb
Copy link

Only1Loatheb commented Dec 20, 2020

I tested a lot of parameter combinations and I can't draw a dashed line.
I use the same settings for svg and blank canvas backend and it works only on svg backend.
https://github.com/Only1Loatheb/glance/blob/466d2e6be44908d8311c5e4e9ac04a666b34f963/app/IconToDiagram.hs#L494
Minimal example below is based on examples/Geom.hs and produces this image.
notDashedCircle

Main.hs

{-# LANGUAGE NoMonomorphismRestriction #-}

module Main where

import Diagrams.Backend.Canvas.CmdLine ( B, mainWith )
import Diagrams.Prelude

sircle :: Diagram B
sircle = circle 100 # lw 10 # dashingN [10, 10] 0

main :: IO ()
main = mainWith $  sircle # frame 0.2

part of stack.yaml

extra-deps: 
- diagrams-lib-1.4.3
- blank-canvas-0.7.3
- diagrams-canvas-1.4.1
- kansas-comet-0.4
@Only1Loatheb
Copy link
Author

Please don't say it is not implemented and it is also not implemented in blank canvas.

@fryguybob
Copy link
Member

I quickly glanced at the source and I don't think it is implemented in either diagrams-canvas or in the blank-canvas dependency.

@Only1Loatheb
Copy link
Author

I replaced it with gradient in my project for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants