Skip to main content
Skip table of contents

Shape Operations

Mako's IDOMShape class offers methods to create a new shape from the interaction of two or more shapes. The operations are analogous to the Shape Modes offered by the Pathfinder tool in Adobe® Illustrator™.

On Github is a simple Mako code sample that demonstrates these, using the attached PDF (see bottom of page). The results are shown below.


A new shape is created that combines the targets. The resulting shape looks like this:


A new shape is created from the area where the two shapes overlap. The resulting shape is shown here; the color image helps explain the shape.


A new shape is created from where the two shapes differ. Note the result, shown here, is not contiguous. The color image shows the effect of the equivalent "Minus Front" operation in Illustrator.

PDF for code example


Use in conjunction with the code found here.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.