[go: up one dir, main page]

Draft: Group coding lpe power stroke

live-video-card

LPE POWER STROKE linked to style dialog

Martin and me are recording in BBB instance of Mc university a session of live coding. First day is on 2020-08-23, next week 5 September 9:00 UTC are the continuation.

Goal: A way to define a fill&stroke of a power stroke LPEs using standar fill and stroke dialog.

The main problem is powerstoke items are "visualy" a stroke but "realy" are a SVG filled path, so wen we apply styles to it we do the wrong applying

How to solve:

We have in diferent LPE a new feature to allow extra elements linked to main LPE item (meassure segments for example) We take this feature and use to link fill based properties to LPE item and stroke based properties to the linked one. The linked (stroke) item is unselectable so we have only the path of fill and the knots

Outstanding problems

  1. Bounding box doesn't include stroke
  2. Undo leaves path ghost (unselectable, undeletable)
  3. Previous stroke/fill not set correctly when creating new objects
  4. Drag object leaves line until let go

STEPS DONE IN FIRST SESSION

  1. Create fill & stroke items
  2. Link style

STEPS DONE IN MIDDLE

  1. A tiny refactor to well handle the LPE from master to a 1.0.x branch (currently master is unsable to our goal, if next weekend master is usable we switch to it)

STEPS TO DO IN NEXT MEETENG 5 September 9:00 UTC

  1. Fix SHAPE BBox calculation on powerstroke items to include stroke in visual BBOX Hard to fix thinking in implement a extra SPCurve to shapes to allow overflow selection/bbox area
  2. Fix pen/pencil tool to work as current way using drop down toolbar shapes (triangle in...)
  3. Use LPE versioning if necesary to make the code 1.0 and lower compatible
  4. Try to reproduce and fix the reselect bug show in video

Peek_2020-08-23_23-48

Edited by Martin Owens

Merge request reports

Loading