Opened 10 years ago

Closed 10 years ago

#15314 closed feature (fixed)

dashed strokes for gfxRenderer=canvas

Reported by: vvoovv Owned by: Patrick Ruzand
Priority: undecided Milestone: 1.9
Component: DojoX GFX Version:
Keywords: Cc:
Blocked By: Blocking:

Description

Dashed strokes are not supported by gfxRenderer=canvas.

It is not a big problem to draw dashed lines. But not sure about event support for the dashed lines. Is it realizable?

Attachments (2)

15314.patch (32.1 KB) - added by Patrick Ruzand 10 years ago.
patch by pruzand (IBM, CCLA)
test_dashedstroke.html (4.4 KB) - added by Patrick Ruzand 10 years ago.
test (with svg rendering in for reference)

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Patrick Ruzand

Attachment: 15314.patch added

patch by pruzand (IBM, CCLA)

comment:1 Changed 10 years ago by Patrick Ruzand

Milestone: tbd1.9
Owner: changed from Eugene Lazutkin to Patrick Ruzand
Status: newassigned

comment:2 Changed 10 years ago by Patrick Ruzand

The attached path provides support for dashed stroke for the canvas renderer, in case this feature is not supported natively by the browser (via the new CanvasRenderingContext2D.setLineDash() method). At the time of this writing, only Chrome 24 has it implemented.

Limitation:

  1. the endCap is not taken into account.
  2. dashed stroke on Text is not supported.

Changed 10 years ago by Patrick Ruzand

Attachment: test_dashedstroke.html added

test (with svg rendering in for reference)

comment:3 Changed 10 years ago by Patrick Ruzand

Resolution: fixed
Status: assignedclosed

In [29916]:

add support for dashed stroke on canvas. fixes #15314, !strict (existing code)

Note: See TracTickets for help on using tickets.