sozi-projects / Sozi

A "zooming" presentation editor
http://sozi.baierouge.fr
Mozilla Public License 2.0
1.59k stars 165 forks source link

Special layer used to automatically create frames #600

Open 00sapo opened 2 years ago

00sapo commented 2 years ago

Patch proposal

I think it would be helpful being able to set the frame position directly in inkscape. For this, one could create a special layer "SoziFrames" and put there objects (mainly rect) that are then used to generate frames on import.

Example:

That's it. I can find time to produce a patch if you find this interesting. Also, if you have advice on the feature itself or on the implementation, I would be happy to know them!

Finally, as in issue #592, this feature can maybe overlap or merge with inkscape multipage feature.

aumouvantsillage commented 2 years ago

Yes. I think this feature could be useful.

My personal preference would be to support the following layout:

For each rectangle, maybe we should use the "Label" field of the object properties (XML attribute inkscape:label) to infer the frame ordering instead of the ID.

00sapo commented 2 years ago

Hello, I tried working on this but I'm not that strong with JavaScript and the codebase is pretty large. Do you have any advice on how we could implement it? Where should we insert edits and which function should we use? Thanks!