schematic-symbols 0.0.188 → 0.0.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -23892,12 +23892,12 @@ function getSvg(symbol14, options = {}) {
|
|
23892
23892
|
function resizeSymbol(symbol14, newSize) {
|
23893
23893
|
const { width: oldWidth, height: oldHeight } = symbol14.size;
|
23894
23894
|
let scaleX = 1, scaleY = 1;
|
23895
|
-
if (newSize.width && newSize.height) {
|
23895
|
+
if (newSize.width !== void 0 && newSize.height !== void 0) {
|
23896
23896
|
scaleX = newSize.width / oldWidth;
|
23897
23897
|
scaleY = newSize.height / oldHeight;
|
23898
|
-
} else if (newSize.width) {
|
23898
|
+
} else if (newSize.width !== void 0) {
|
23899
23899
|
scaleX = scaleY = newSize.width / oldWidth;
|
23900
|
-
} else if (newSize.height) {
|
23900
|
+
} else if (newSize.height !== void 0) {
|
23901
23901
|
scaleX = scaleY = newSize.height / oldHeight;
|
23902
23902
|
}
|
23903
23903
|
const resizedPrimitives = symbol14.primitives.map((primitive) => {
|