Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interoperability with Pencil #208

Open
lppedd opened this issue Jul 14, 2022 · 2 comments
Open

Interoperability with Pencil #208

lppedd opened this issue Jul 14, 2022 · 2 comments

Comments

@lppedd
Copy link

lppedd commented Jul 14, 2022

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?

@lppedd
Copy link
Author

lppedd commented Jul 14, 2022

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.

@lppedd
Copy link
Author

lppedd commented Jul 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant