chore: Linter warnings
This commit is contained in:
parent
1d08ff5639
commit
53eb0c6546
7 changed files with 7 additions and 58 deletions
30
CHANGELOG.md
30
CHANGELOG.md
|
@ -84,12 +84,6 @@
|
|||
|
||||
### plugin-i18n
|
||||
|
||||
#### Removed
|
||||
|
||||
- This plugin no longer sets its version as an SVG attribute when rendering patterns
|
||||
|
||||
### plugin-logo
|
||||
|
||||
#### Removed
|
||||
|
||||
- This plugin no longer sets its version as an SVG attribute when rendering patterns
|
||||
|
@ -694,12 +688,6 @@
|
|||
|
||||
### plugin-i18n
|
||||
|
||||
#### Changed
|
||||
|
||||
- Migrated from Rollup to Esbuild for all builds
|
||||
|
||||
### plugin-logo
|
||||
|
||||
#### Changed
|
||||
|
||||
- Migrated from Rollup to Esbuild for all builds
|
||||
|
@ -1348,12 +1336,6 @@
|
|||
|
||||
### plugin-i18n
|
||||
|
||||
#### Added
|
||||
|
||||
- Added (esm) unit tests
|
||||
|
||||
### plugin-logo
|
||||
|
||||
#### Added
|
||||
|
||||
- Added (esm) unit tests
|
||||
|
@ -2324,12 +2306,6 @@
|
|||
- Added examples for bartack plugin
|
||||
- Added examples for new buttonhole-start/end snippets
|
||||
|
||||
### plugin-logo
|
||||
|
||||
#### Added
|
||||
|
||||
- Render logo in currentColor to support dark mode
|
||||
|
||||
### plugin-theme
|
||||
|
||||
#### Added
|
||||
|
@ -3781,12 +3757,6 @@
|
|||
|
||||
### plugin-i18n
|
||||
|
||||
#### Added
|
||||
|
||||
- Initial release
|
||||
|
||||
### plugin-logo
|
||||
|
||||
#### Added
|
||||
|
||||
- Initial release
|
||||
|
|
|
@ -232,8 +232,8 @@ export const plugin_mirror = {
|
|||
|
||||
macro('mirror', {
|
||||
mirror: [points.b, points.d],
|
||||
points: [points.mid],
|
||||
paths: [paths.a],
|
||||
points: ['mid'],
|
||||
paths: ['a'],
|
||||
})
|
||||
|
||||
macro('sprinkle', {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Not importing i18n since it's a run-time plugin loaded by workbench
|
||||
//import { i18nPlugin } from '@freesewing/plugin-i18n'
|
||||
|
||||
const pluginI18n = ({ points, Point, paths, Path, options, part, macro, store }) => {
|
||||
const pluginI18n = ({ points, Point, options, part, macro, store }) => {
|
||||
if (['i18n', 'all'].indexOf(options.plugin) !== -1) {
|
||||
points.a = new Point(0, 0).attr('data-text', 'cutTwoStripsToFinishTheArmholes')
|
||||
|
||||
|
|
|
@ -1,18 +1,7 @@
|
|||
import { base } from './base.mjs'
|
||||
import { logoPlugin } from '@freesewing/plugin-logo'
|
||||
|
||||
const pluginLogo = ({
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
snippets,
|
||||
Snippet,
|
||||
options,
|
||||
part,
|
||||
macro,
|
||||
store,
|
||||
}) => {
|
||||
const pluginLogo = ({ points, Point, snippets, Snippet, options, part, macro, store }) => {
|
||||
if (['logo', 'all'].indexOf(options.plugin) !== -1) {
|
||||
points.a = new Point(40, 40)
|
||||
snippets.a = new Snippet('logo', points.a)
|
||||
|
|
|
@ -11,17 +11,7 @@ const measies = [
|
|||
'crossSeamBack',
|
||||
]
|
||||
|
||||
const pluginMeasurements = ({
|
||||
points,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
measurements,
|
||||
options,
|
||||
part,
|
||||
macro,
|
||||
store,
|
||||
}) => {
|
||||
const pluginMeasurements = ({ points, Point, measurements, options, part, macro, store }) => {
|
||||
if (['measurements', 'all'].indexOf(options.plugin) !== -1) {
|
||||
let y = 10
|
||||
for (const m of measies) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { sprinklePlugin } from '@freesewing/plugin-sprinkle'
|
||||
import { base } from './base.mjs'
|
||||
|
||||
const pluginSprinkle = ({ Point, points, Path, paths, options, macro, part, store }) => {
|
||||
const pluginSprinkle = ({ Point, points, options, macro, part, store }) => {
|
||||
if (['sprinkle', 'all'].indexOf(options.plugin) !== -1) {
|
||||
points.center = new Point(0, 0)
|
||||
points.top = new Point(0, 20)
|
||||
|
|
|
@ -27,7 +27,7 @@ function simonYoke({
|
|||
else {
|
||||
macro('mirror', {
|
||||
mirror: [points.cbNeck, points.cbYoke],
|
||||
paths: [paths.saBase],
|
||||
paths: ['saBase'],
|
||||
clone: true,
|
||||
})
|
||||
paths.saBase = paths.saBase.join(paths.mirroredSaBase.reverse())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue