rough-stuff/rough

Interoperability with Pencil

lppedd opened this issue · 2 comments

I'm trying to add a Sketchy Rough collection to Pencil.
This is a box example:

example

You can see Pencil is able to drag only over SVG paths.
Do you think there is a way we could overcome this issue?

Done it. Just define an hidden background layer.

<Behaviors>
  <For ref="background">
    <Width>$box.w</Width>
    <Height>$box.h</Height>
  </For>
  ...
</Behaviors>
<p:Content xmlns:p="http://www.evolus.vn/Namespace/Pencil" xmlns="http://www.w3.org/2000/svg">
  <g style="fill-opacity: 0">
    <rect id="background" />
  </g>
  <g id="content" />
  <text id="text" />
</p:Content>

Keeping this open for others.

Please refer to https://github.com/lppedd/pencil-sketchy-rough for contributions 😄