1
0
Fork 0

feat(core): Allow plugins to provide their own packing implementation

This commit is contained in:
Joost De Cock 2023-10-15 15:12:10 +02:00
parent e9135f707a
commit b83ab5df74
20 changed files with 590 additions and 5 deletions

View file

@ -5,6 +5,7 @@ import { Design, Attributes } from '../src/index.mjs'
import { Defs } from '../src/defs.mjs'
import { version } from '../data.mjs'
import render from './fixtures/render.mjs'
import { binpackPlugin } from '../../../plugins/plugin-bin-pack/src/index.mjs'
chai.use(chaiString)
const expect = chai.expect
@ -12,6 +13,7 @@ const expect = chai.expect
const getPattern = (settings = {}, draft = false) => {
const part = {
name: 'test',
plugins: binpackPlugin,
draft: draft
? draft
: ({ paths, Path, Point, part }) => {