Draft: Group coding lpe power stroke
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
- Bounding box doesn't include stroke
- Undo leaves path ghost (unselectable, undeletable)
- Previous stroke/fill not set correctly when creating new objects
- Drag object leaves line until let go
STEPS DONE IN FIRST SESSION
- Create fill & stroke items
- Link style
STEPS DONE IN MIDDLE
- 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
-
Fix SHAPE BBox calculation on powerstroke items to include stroke in visual BBOXHard to fix thinking in implement a extra SPCurve to shapes to allow overflow selection/bbox area - Fix pen/pencil tool to work as current way using drop down toolbar shapes (triangle in...)
- Use LPE versioning if necesary to make the code 1.0 and lower compatible
- Try to reproduce and fix the reselect bug show in video
Edited by Martin Owens

