Seth Falco
feb9b5e069
fix(convertColors): use currentColor instead of currentcolor ( #2137 )
2025-05-22 01:21:30 +01:00
Seth Falco
26d059f3d7
fix: invoke mapNodesToParents lazily ( #2132 )
2025-05-11 15:38:41 +01:00
Sigurd Spieckermann
b761d1b0db
feat: add editor namespace for Boxy SVG ( #2008 )
2025-05-10 23:04:47 +01:00
Seth Falco
31328bc473
chore: add krita namespace to list of editor namespaces ( #2131 )
2025-05-10 20:46:04 +01:00
Seth Falco
747cc722d9
chore: revamp how we export types ( #2118 )
2025-05-04 17:39:44 +01:00
Seth Falco
49954bc0d9
chores: various clean ups regardin ESM and TypeScript ( #2117 )
2025-05-03 09:42:29 +01:00
Seth Falco
a8a53dbd90
chore: apply more eslint rules ( #2116 )
2025-05-02 10:00:37 +01:00
Seth Falco
8c593fab06
chore: bulk update all jsdoc and jsdoctypes ( #2114 )
2025-05-01 22:16:52 +01:00
Seth Falco
9eb3af59f2
chore: drop parentNode property ( #2113 )
2025-05-01 15:59:23 +01:00
Seth Falco
4573d0178e
chore: migrate plugin types to plugin ( #2111 )
2025-04-30 02:16:53 +01:00
Seth Falco
71a1254895
fix: improve jsdoc types and remove excludes ( #2107 )
2025-04-28 22:24:16 +01:00
Seth Falco
dba60b3580
chore: migrate from ts-ignore to ts-expect-error ( #2103 )
2025-04-12 19:41:49 +01:00
Seth Falco
9c8768f64d
ci: add spellcheck ( #2101 )
2025-04-12 16:47:32 +01:00
LordArugula
55ae463649
Update links in _transforms.js ( #2092 )
...
docs: fixed dead link in doc comments
2025-04-11 08:14:15 +01:00
Nathan Baulch
0eccff2794
chore: fix various typos across the project
2025-03-22 11:49:01 +00:00
Seth Falco
f3495ff6c9
fix(removeEmptyContainers): skip if filter is applied via styles as well ( #2089 )
...
Fixes a bug where we were too eager to remove empty containers.
We already had logic to skip removing empty containers if it had the
filter attribute, which is needed to apply a filter to the whole area.
However, the filter can also be defined through CSS. We did not
properly handle this case, and treated the node as if it had no filter
at all.
This computes the styles and checks the stylesheet as well. (We also
move the logic down to avoid computing the styles eagerly.)
2024-12-22 16:01:22 +00:00
Seth Falco
97d7d00add
add: centralize exports to svgo ( #2071 )
2024-09-07 19:26:05 +01:00
Seth Falco
9078e8ca08
refactor(cleanupNumbericValues): improve how viewbox is split ( #2046 )
2024-07-02 10:07:57 +01:00
Seth Falco
a59f47b98c
chore(removeScripts): remove redundant regex pattern ( #2045 )
2024-07-02 09:38:35 +01:00
Seth Falco
1348383caa
chore(addAttributesToSVGElement): fix typoes in docs ( #2037 )
2024-06-14 21:44:45 +01:00
Seth Falco
5481fc2477
fix: don't insert 0 at start or end of attribute if whitespace ( #2036 )
2024-06-14 12:48:56 +01:00
Antonio Salvati
e73d13a1a5
fix: convertColors plugin ignore currentColor in 'mask' elements ( #2032 )
2024-06-14 10:43:30 +01:00
Seth Falco
0c13740fdd
feat: expose builtin plugins ( #2027 )
2024-06-09 12:28:37 +01:00
Seth Falco
1e23f66e76
chore: rename removescriptelement to removescripts ( #2021 )
2024-06-07 09:58:21 +01:00
Kendell R
a761a01038
fix(convertColors): accept commaless rgb ( #2015 )
2024-05-26 22:08:37 +01:00
XhmikosR
4daaa4251f
chore: update ESLint to v9 and switch to flat config ( #2001 )
2024-05-26 13:22:23 +01:00
Seth Falco
c86536ed70
chore: disable removeTitle from default plugins ( #2014 )
2024-05-24 21:14:48 +01:00
John Albin Wilkins
3d2a6247e0
Remove the removeViewBox plugin from the default plugins list ( #1461 )
2024-05-24 20:49:24 +01:00
Seth Falco
3bcdc37cb7
docs: use plugin names and refactor ( #2007 )
2024-05-15 20:37:26 +01:00
Viktor Szépe
559b9ad068
chore: resolve typos
2024-05-09 10:09:31 +01:00
刘巍峰
89b0c6c435
fix(cleanupIds): handle no-uri-encoded references ( #1982 )
2024-04-25 09:01:53 +01:00
Seth Falco
8d6385bd9a
fix(convertPathData): preserve vertex for markers only path ( #1967 )
2024-03-02 01:24:43 +00:00
Seth Falco
53aad59dc9
feat(addClassesToSVGElement): allow function as param ( #1966 )
...
Updates the interface for addClassesToSVGElement to match prefixIds,
where we'll accept Array<string|function> instead of just a string.
2024-03-01 00:50:30 +00:00
johnkenny54
f49b6a717d
fix: transformToMatrix() returns incorrect result for scale(n,0) ( #1965 )
2024-02-27 22:48:19 +00:00
johnkenny54
a8d2df6660
fix: mergePaths should not merge paths with styles that depend on bounding box ( #1964 )
2024-02-25 23:05:32 +00:00
johnkenny54
e2575988cc
fix: <a> element not parsed as text ( #1959 )
2024-02-11 22:14:25 +00:00
johnkenny54
a938d5e1f3
fix(collapseGroups): check for filter in style as well as attribute ( #1952 )
2024-02-07 21:40:46 +00:00
Kendell R
9a7750f2a8
fix(mergePaths): use a default floatPrecision ( #1945 )
2024-02-07 21:20:50 +00:00
johnkenny54
4884d59133
fix: revamp matrixToTransform
2024-02-05 21:47:31 +00:00
johnkenny54
f7436c726e
fix: removeHiddenElems - treat <path> with opacity:0 as non-rendering node. ( #1948 )
2024-01-29 22:19:44 +00:00
john-neptune
10e5e5ef39
fix(prefixIds): sameline comments ( #1942 )
2024-01-23 15:28:10 +00:00
Seth Falco
174e952573
chore: use math.hypot ( #1936 )
2024-01-17 22:15:35 +00:00
Jon Dufresne
59796a829b
feat(removeDeprecatedAttrs): new removeDeprecatedAttrs plugin ( #1869 )
2024-01-15 21:48:14 +00:00
johnkenny54
8afb370ea0
fix: moveElemsAttrsToGroups should not move transform if group has filter attribute ( #1933 )
2024-01-15 16:18:11 +00:00
johnkenny54
3e9ad5e81d
fix: collapseGroups does not move attributes atomically ( #1930 )
2024-01-07 17:08:54 +00:00
JayLeininger
6747e3a047
feat(convertcolors): add param to convert colors to common case ( #1692 )
2024-01-07 16:28:24 +00:00
johnkenny54
4da8b38fee
fix(removeHiddenElems): dont remove node if children have referenced id ( #1925 )
2024-01-06 14:55:24 +00:00
Kendell R
6afc7bdb52
fix(convertPathData): fix q control point behavior when item is removed ( #1927 )
2024-01-06 14:07:25 +00:00
johnkenny54
51c59f5ad2
fix(removeUselessDefs): dont remove node if children has id ( #1923 )
2024-01-03 20:31:42 +00:00
Jon Dufresne
2442f74239
chore: convert project to us ECMAScript modules (preserving CJS compatibility) ( #1905 )
2024-01-03 16:17:37 +00:00