easyeda 0.0.139 → 0.0.141
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/browser/index.js +2 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/{chunk-SMM32IOL.js → chunk-DOIERR7E.js} +3 -2
- package/dist/{chunk-SMM32IOL.js.map → chunk-DOIERR7E.js.map} +1 -1
- package/dist/cli/main.js +3 -3
- package/dist/cli/main.js.map +1 -1
- package/dist/lib/index.js +1 -1
- package/package.json +2 -2
|
@@ -3083,6 +3083,7 @@ var generateTypescriptComponent = ({
|
|
|
3083
3083
|
manufacturerPartNumber
|
|
3084
3084
|
}) => {
|
|
3085
3085
|
const safePinLabels = pinLabels ?? {};
|
|
3086
|
+
const cadComponent = circuitJson.find((item) => item.type === "cad_component");
|
|
3086
3087
|
const footprintTsx = generateFootprintTsx(circuitJson);
|
|
3087
3088
|
const simplifiedPinLabels = Object.fromEntries(
|
|
3088
3089
|
Object.entries(safePinLabels).map(([pin, labels]) => {
|
|
@@ -3109,7 +3110,7 @@ export const ${componentName} = (props: ChipProps<typeof pinLabels>) => {
|
|
|
3109
3110
|
footprint={${footprintTsx}}
|
|
3110
3111
|
${objUrl ? `cadModel={{
|
|
3111
3112
|
objUrl: "${objUrl}",
|
|
3112
|
-
rotationOffset: { x: 0, y: 0, z: 0 },
|
|
3113
|
+
rotationOffset: { x: 0, y: 0, z: ${cadComponent?.rotation?.z ?? 0} },
|
|
3113
3114
|
positionOffset: { x: 0, y: 0, z: 0 },
|
|
3114
3115
|
}}` : ""}
|
|
3115
3116
|
{...props}
|
|
@@ -3281,4 +3282,4 @@ export {
|
|
|
3281
3282
|
convertRawEasyToTsx,
|
|
3282
3283
|
convertEasyEdaJsonToVariousFormats
|
|
3283
3284
|
};
|
|
3284
|
-
//# sourceMappingURL=chunk-
|
|
3285
|
+
//# sourceMappingURL=chunk-DOIERR7E.js.map
|