Skip to content

Support NOT OR operation for single-path shapes #285

@kyamagu

Description

@kyamagu

Summary

Single-path shapes with the NOT OR operation (negated shapes) are not currently handled.

Current Behavior

  • Single paths with NOT OR operation are processed as regular shapes
  • Code location: shape.py:40

Expected Behavior

Proper handling of negated shapes, likely by creating an inverted mask or using appropriate SVG techniques.

Implementation Notes

The code comment indicates this is a special case: "Handle NOT OR for single path. This is a negated shape."

A negated shape means the shape defines what should be hidden rather than what should be shown. This would require:

  1. Detecting the NOT OR operation on single paths
  2. Using an inverted mask or fill-rule to achieve the negation effect
  3. Ensuring proper composition with other layers

Related Files

  • src/psd2svg/core/shape.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions