1
0
Fork 0
freesewing/markdown/dev/reference/plugins/logo/en.md
2021-10-17 18:26:00 +02:00

1.5 KiB

title
logo

Build-time plugin   License: MIT   Code quality on DeepScan   Open issues tagged pkg:plugin-logo

The logo plugin provides the logo snippet:

let { Point, snippets, Snippet } = part.shorthand();

snippets.logo = new Snippet("logo", new Point(50, 30));

The logo plugin is part of our plugin-bundle

Installation

npm install @freesewing/plugin-logo

Usage

Like all build-time plugins, you load them by passing them to the freesewing.Design constructor:

import freesewing from "@freesewing/core";
import logo from "@freesewing/plugin-logo";
import config from "../config";

const Pattern = new freesewing.Design(config, logo);