imrishabh18/ring-light

It is a surface-mount voltage regulator integrated circuit (AP2112K-3.3) with pins for input, ground, enable, and output.

Version
1.0.0
License
unset
Stars
0

dist/index.cjs

'use strict';

const pinLabels$3 = {
    pin1: ["EH2"],
    pin2: ["EH1"],
    pin3: ["EH4"],
    pin4: ["EH3"],
    pin5: ["B8"],
    pin6: ["A5"],
    pin7: ["B7"],
    pin8: ["A6"],
    pin9: ["A7"],
    pin10: ["B6"],
    pin11: ["A8"],
    pin12: ["B5"],
    pin13: ["A1B12"],
    pin14: ["B1A12"],
    pin15: ["B4A9"],
    pin16: ["A4B9"]
};
const UsbC = (props) => {
    return (React.createElement("chip", { pinLabels: pinLabels$3, supplierPartNumbers: {
            "jlcpcb": [
                "C165948"
            ]
        }, manufacturerPartNumber: "TYPE_C_31_M_12", footprint: React.createElement("footprint", null,
            React.createElement("hole", { pcbX: "-2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }),
            React.createElement("hole", { pcbX: "2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }),
            React.createElement("platedhole", { portHints: ["pin2"], pcbX: "4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }),
            React.createElement("platedhole", { portHints: ["pin1"], pcbX: "4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }),
            React.createElement("platedhole", { portHints: ["pin4"], pcbX: "-4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }),
            React.createElement("platedhole", { portHints: ["pin3"], pcbX: "-4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin5"], pcbX: "-1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin6"], pcbX: "-1.249934mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin7"], pcbX: "-0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin8"], pcbX: "-0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin9"], pcbX: "0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin10"], pcbX: "0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin11"], pcbX: "1.24968mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin12"], pcbX: "1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin13"], points: [{ x: "-2.8999688mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "1.524108mm" }], shape: "polygon" }),
            React.createElement("smtpad", { portHints: ["pin14"], points: [{ x: "2.8999942mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "2.8241308mm" }], shape: "polygon" }),
            React.createElement("smtpad", { portHints: ["pin15"], points: [{ x: "2.7001724mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "1.5241588mm" }], shape: "polygon" }),
            React.createElement("smtpad", { portHints: ["pin16"], points: [{ x: "-2.0999704mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "1.5240064mm" }], shape: "polygon" }),
            React.createElement("silkscreenpath", { route: [{ "x": -4.4689776000000165, "y": -1.6757585999999947 }, { "x": -4.4689776000000165, "y": 0.18715359999987413 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -3.91283820000001 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -1.676114200000029 }, { "x": 4.471009600000116, "y": 0.18750920000002225 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": 4.471009600000116, "y": -3.912482600000203 }] }),
            React.createElement("silkscreentext", { text: "{NAME}", pcbX: "0.002794mm", pcbY: "3.8286012mm", anchorAlignment: "center", fontSize: "1mm" }),
            React.createElement("courtyardoutline", { outline: [{ "x": -5.174805999999876, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": 3.0786011999998664 }] })), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.obj?uuid=617b05f9bba7410b96c001093d8189e4",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.step?uuid=617b05f9bba7410b96c001093d8189e4",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: -2.7500289000000517, z: 0.000010999999999872223 },
        }, ...props }));
};

const pinLabels$2 = {
    pin1: ["CC1DB"],
    pin2: ["CC1"],
    pin3: ["NC"],
    pin4: ["CC2"],
    pin5: ["CC2DB"],
    pin6: ["RESET"],
    pin7: ["SCL"],
    pin8: ["SDA"],
    pin9: ["DISCH"],
    pin10: ["GND"],
    pin11: ["ATTACH"],
    pin12: ["ADDR0"],
    pin13: ["ADDR1"],
    pin14: ["POWER_OK3"],
    pin15: ["GPIO"],
    pin16: ["VBUS_EN_SNK"],
    pin17: ["A_B_SIDE"],
    pin18: ["VBUS_VS_DISCH"],
    pin19: ["ALERT"],
    pin20: ["POWER_OK2"],
    pin21: ["VREG_1V2"],
    pin22: ["VSYS"],
    pin23: ["VREG_2V7"],
    pin24: ["VDD"],
    pin25: ["EP"]
};
const STUSB4500QTR = (props) => {
    return (React.createElement("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
            "jlcpcb": [
                "C2678061"
            ]
        }, manufacturerPartNumber: "STUSB4500QTR", footprint: React.createElement("footprint", null,
            React.createElement("smtpad", { portHints: ["pin1"], pcbX: "-1.249934mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin2"], pcbX: "-0.750062mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin3"], pcbX: "-0.249936mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin4"], pcbX: "0.249936mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin5"], pcbX: "0.750062mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin6"], pcbX: "1.249934mm", pcbY: "-1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin7"], pcbX: "1.999996mm", pcbY: "-1.249934mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin8"], pcbX: "1.999996mm", pcbY: "-0.750062mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin9"], pcbX: "1.999996mm", pcbY: "-0.249936mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin10"], pcbX: "1.999996mm", pcbY: "0.249936mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin11"], pcbX: "1.999996mm", pcbY: "0.750062mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin12"], pcbX: "1.999996mm", pcbY: "1.249934mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin13"], pcbX: "1.249934mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin14"], pcbX: "0.750062mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin15"], pcbX: "0.249936mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin16"], pcbX: "-0.249936mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin17"], pcbX: "-0.750062mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin18"], pcbX: "-1.249934mm", pcbY: "1.999996mm", width: "0.2800096mm", height: "0.6999986mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin19"], pcbX: "-1.999996mm", pcbY: "1.249934mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin20"], pcbX: "-1.999996mm", pcbY: "0.750062mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin21"], pcbX: "-1.999996mm", pcbY: "0.249936mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin22"], pcbX: "-1.999996mm", pcbY: "-0.249936mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin23"], pcbX: "-1.999996mm", pcbY: "-0.750062mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin24"], pcbX: "-1.999996mm", pcbY: "-1.249934mm", width: "0.6999986mm", height: "0.2800096mm", radius: "0.1400048mm", shape: "pill" }),
            React.createElement("smtpad", { portHints: ["pin25"], pcbX: "0.0127mm", pcbY: "0mm", width: "2.7999944mm", height: "2.7999944mm", shape: "rect" }),
            React.createElement("silkscreenpath", { route: [{ "x": 2.1628099999998085, "y": 1.7500345999999354 }, { "x": 2.1628099999998085, "y": 2.1501353999999537 }, { "x": 1.7627599999999575, "y": 2.1501353999999537 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": -2.137384599999905, "y": 1.7500345999999354 }, { "x": -2.137384599999905, "y": 2.1501353999999537 }, { "x": -1.737359999999967, "y": 2.1501353999999537 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": -1.737359999999967, "y": -2.1501353999999537 }, { "x": -2.137384599999905, "y": -2.1501353999999537 }, { "x": -2.137384599999905, "y": -1.750085399999989 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": 2.1628099999998085, "y": -1.750085399999989 }, { "x": 2.1628099999998085, "y": -2.1501353999999537 }, { "x": 1.7627599999999575, "y": -2.1501353999999537 }] }),
            React.createElement("silkscreentext", { text: "{NAME}", pcbX: "-0mm", pcbY: "3.343404mm", anchorAlignment: "center", fontSize: "1mm" }),
            React.createElement("courtyardoutline", { outline: [{ "x": -2.5995000000000346, "y": 2.5934040000000778 }, { "x": 2.599499999999921, "y": 2.5934040000000778 }, { "x": 2.599499999999921, "y": -2.6055959999999914 }, { "x": -2.5995000000000346, "y": -2.6055959999999914 }, { "x": -2.5995000000000346, "y": 2.5934040000000778 }] })), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2678061.obj?uuid=f4a3249710724deb990f62f343cd4553",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2678061.step?uuid=f4a3249710724deb990f62f343cd4553",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: -12699999842880061e-21, y: -12700000070253736e-21, z: 0 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["VIN"],
    pin2: ["GND"],
    pin3: ["ON"],
    pin4: ["CT"],
    pin5: ["QOD"],
    pin6: ["VOUT"]
};
const TPS22918DBVR = (props) => {
    return (React.createElement("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C131941"
            ]
        }, manufacturerPartNumber: "TPS22918DBVR", footprint: React.createElement("footprint", null,
            React.createElement("smtpad", { portHints: ["pin3"], pcbX: "1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin2"], pcbX: "1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin1"], pcbX: "1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin6"], pcbX: "-1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin5"], pcbX: "-1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin4"], pcbX: "-1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }),
            React.createElement("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": 1.5499080000000731 }, { "x": 0.9000236000000541, "y": 1.5499080000000731 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": -1.5501111999999466 }, { "x": 0.9000236000000541, "y": -1.5501111999999466 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": 1.5240000000001146, "y": -1.6510000000000673 }, { "x": 1.5196725799386286, "y": -1.6838700187280438 }, { "x": 1.5069852262805625, "y": -1.7145000000000437 }, { "x": 1.4868025612107658, "y": -1.740802561210785 }, { "x": 1.4604999999999109, "y": -1.7609852262806953 }, { "x": 1.4298700187280247, "y": -1.7736725799387614 }, { "x": 1.3969999999999345, "y": -1.77800000000002 }, { "x": 1.3641299812720717, "y": -1.7736725799387614 }, { "x": 1.3334999999999582, "y": -1.7609852262806953 }, { "x": 1.3071974387893306, "y": -1.740802561210785 }, { "x": 1.2870147737194202, "y": -1.7145000000000437 }, { "x": 1.2743274200612404, "y": -1.6838700187280438 }, { "x": 1.2699999999999818, "y": -1.6510000000000673 }, { "x": 1.2743274200612404, "y": -1.6181299812719772 }, { "x": 1.2870147737194202, "y": -1.5874999999999773 }, { "x": 1.3071974387893306, "y": -1.5611974387893497 }, { "x": 1.3334999999999582, "y": -1.541014773719553 }, { "x": 1.3641299812720717, "y": -1.5283274200613732 }, { "x": 1.3969999999999345, "y": -1.524000000000001 }, { "x": 1.4298700187280247, "y": -1.5283274200613732 }, { "x": 1.4604999999999109, "y": -1.541014773719553 }, { "x": 1.4868025612107658, "y": -1.5611974387893497 }, { "x": 1.5069852262805625, "y": -1.5874999999999773 }, { "x": 1.5196725799386286, "y": -1.6181299812719772 }, { "x": 1.5240000000001146, "y": -1.6510000000000673 }] }),
            React.createElement("silkscreentext", { text: "{NAME}", pcbX: "0.012446mm", pcbY: "2.562354mm", anchorAlignment: "center", fontSize: "1mm" }),
            React.createElement("courtyardoutline", { outline: [{ "x": -2.1425540000000183, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": 1.8123540000000276 }] })), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C131941.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C131941.step?uuid=229b69761e2c45dba6a83d8866dec72d",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0.000025399999913133797, y: -889000000370288e-19, z: -0.048939 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["VIN"],
    pin2: ["GND"],
    pin3: ["EN"],
    pin4: ["NC"],
    pin5: ["VOUT"]
};
const AP2112K_3_3TRG1 = (props) => {
    return (React.createElement("chip", { pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C51118"
            ]
        }, manufacturerPartNumber: "AP2112K_3_3TRG1", footprint: React.createElement("footprint", null,
            React.createElement("smtpad", { portHints: ["pin4"], pcbX: "0.949706mm", pcbY: "1.299972mm", width: "0.6223mm", height: "1.1049mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin5"], pcbX: "-0.949706mm", pcbY: "1.299972mm", width: "0.6223mm", height: "1.1049mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin1"], pcbX: "-0.949706mm", pcbY: "-1.299972mm", width: "0.6223mm", height: "1.1049mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin2"], pcbX: "-0.000508mm", pcbY: "-1.299972mm", width: "0.6223mm", height: "1.1049mm", shape: "rect" }),
            React.createElement("smtpad", { portHints: ["pin3"], pcbX: "0.949706mm", pcbY: "-1.299972mm", width: "0.6223mm", height: "1.1049mm", shape: "rect" }),
            React.createElement("silkscreenpath", { route: [{ "x": 1.41193520000013, "y": -0.5003799999999501 }, { "x": -1.3871447999999873, "y": -0.5003799999999501 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": -1.3871447999999873, "y": -0.5003799999999501 }, { "x": -1.3871447999999873, "y": 0.5003799999999501 }, { "x": 1.41193520000013, "y": 0.5003799999999501 }, { "x": 1.41193520000013, "y": -0.5003799999999501 }] }),
            React.createElement("silkscreenpath", { route: [{ "x": -1.779549399999837, "y": -1.5214599999999336 }, { "x": -1.9027377800492786, "y": -1.6465485285044679 }, { "x": -1.7782793999998603, "y": -1.7703735202394455 }, { "x": -1.6538210199506693, "y": -1.6465485285045816 }, { "x": -1.7770093999999972, "y": -1.5214599999999336 }] }),
            React.createElement("silkscreentext", { text: "{NAME}", pcbX: "-0.228854mm", pcbY: "2.8542mm", anchorAlignment: "center", fontSize: "1mm" }),
            React.createElement("courtyardoutline", { outline: [{ "x": -2.1552539999999, "y": 2.1042000000001053 }, { "x": 1.6975460000001021, "y": 2.1042000000001053 }, { "x": 1.6975460000001021, "y": -2.104199999999878 }, { "x": -2.1552539999999, "y": -2.104199999999878 }, { "x": -2.1552539999999, "y": 2.1042000000001053 }] })), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.obj?uuid=6d166d1d6c064b99aa79465714e989c1",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.step?uuid=6d166d1d6c064b99aa79465714e989c1",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: -12700000070253736e-21, y: 0, z: -0.15 },
        }, ...props }));
};

const OUTER_RADIUS = 55;
const INNER_RADIUS = 25;
const LED_RADIUS = 42;
const RESISTOR_RADIUS = 33;
const circlePoints = (radius, count = 128) => Array.from({ length: count }, (_, i) => {
    const theta = (2 * Math.PI * i) / count;
    return {
        x: Number((Math.cos(theta) * radius).toFixed(3)),
        y: Number((Math.sin(theta) * radius).toFixed(3)),
    };
});
const polar = (radius, degrees) => {
    const theta = (degrees * Math.PI) / 180;
    return {
        x: Number((Math.cos(theta) * radius).toFixed(3)),
        y: Number((Math.sin(theta) * radius).toFixed(3)),
    };
};
const TestPad = (props) => (React.createElement("chip", { ...props, pinLabels: { pin1: "pin1" }, footprint: React.createElement("footprint", null,
        React.createElement("smtpad", { portHints: ["pin1", "1"], pcbX: "0mm", pcbY: "0mm", width: "1.5mm", height: "1.5mm", shape: "rect" })) }));
const LedString = ({ stringIndex, startLedIndex }) => {
    const centerAngle = stringIndex * 45;
    const ledAngles = [centerAngle - 8, centerAngle, centerAngle + 8];
    const resistorPoint = polar(RESISTOR_RADIUS, centerAngle);
    const resistorName = `RLED${stringIndex + 1}`;
    return (React.createElement(React.Fragment, null,
        React.createElement("resistor", { name: resistorName, resistance: "150", footprint: "1206", pcbX: resistorPoint.x, pcbY: resistorPoint.y, pcbRotation: centerAngle + 90, schX: stringIndex * 2.2 - 7.7, schY: -7 }),
        ledAngles.map((angle, i) => {
            const p = polar(LED_RADIUS, angle);
            return (React.createElement("led", { key: angle, name: `D${startLedIndex + i}`, color: stringIndex % 2 === 0 ? "white" : "warm-white", footprint: "1206", pcbX: p.x, pcbY: p.y, pcbRotation: angle + 90, schX: stringIndex * 2.2 - 7.7, schY: -8.2 - i }));
        }),
        React.createElement("trace", { from: `.${resistorName} .pin1`, to: "net.VLED" }),
        React.createElement("trace", { from: `.${resistorName} .pin2`, to: `.D${startLedIndex} .anode` }),
        React.createElement("trace", { from: `.D${startLedIndex} .cathode`, to: `.D${startLedIndex + 1} .anode` }),
        React.createElement("trace", { from: `.D${startLedIndex + 1} .cathode`, to: `.D${startLedIndex + 2} .anode` }),
        React.createElement("trace", { from: `.D${startLedIndex + 2} .cathode`, to: "net.GND" })));
};
var index = () => (React.createElement("board", { outline: circlePoints(OUTER_RADIUS) },
    React.createElement("cutout", { shape: "circle", radius: INNER_RADIUS, pcbX: 0, pcbY: 0 }),
    React.createElement("silkscreencircle", { pcbX: 0, pcbY: 0, radius: INNER_RADIUS }),
    React.createElement("silkscreencircle", { pcbX: 0, pcbY: 0, radius: OUTER_RADIUS - 1.5 }),
    React.createElement("silkscreentext", { pcbX: 0, pcbY: 28, text: "USB-C PD RING LIGHT - STUSB4500 - 12V PDO", fontSize: 1.5, anchorAlignment: "center" }),
    React.createElement(UsbC, { name: "J1", pcbX: 0, pcbY: -51.7, pcbRotation: 180, schX: -10, schY: 4 }),
    React.createElement("fuse", { name: "F1", currentRating: "3A", voltageRating: "32V", footprint: "1206", pcbX: 0, pcbY: -37.5, pcbRotation: 90, schX: -5, schY: 4 }),
    React.createElement("diode", { zener: true, name: "D_TVS1", footprint: "sod123", pcbX: -10, pcbY: -41, pcbRotation: 90, schX: -2, schY: 3 }),
    React.createElement(STUSB4500QTR, { name: "U1", pcbX: -14, pcbY: -31, pcbRotation: 45, schX: -5, schY: 0 }),
    React.createElement(AP2112K_3_3TRG1, { name: "U2", pcbX: 12, pcbY: -34, pcbRotation: 180, schX: 2, schY: 2 }),
    React.createElement(TPS22918DBVR, { name: "U3", pcbX: 14, pcbY: -25, pcbRotation: 90, schX: 5, schY: -2 }),
    React.createElement("capacitor", { name: "C1", capacitance: "10uF", footprint: "0805", pcbX: 7, pcbY: -39, schX: 1, schY: 3 }),
    React.createElement("capacitor", { name: "C2", capacitance: "10uF", footprint: "0805", pcbX: 17, pcbY: -38, schX: 3, schY: 3 }),
    React.createElement("capacitor", { name: "C3", capacitance: "1uF", footprint: "0603", pcbX: -20, pcbY: -33, schX: -8, schY: -3 }),
    React.createElement("capacitor", { name: "C4", capacitance: "100nF", footprint: "0402", pcbX: -18, pcbY: -27, schX: -7, schY: -4 }),
    React.createElement("capacitor", { name: "C5", capacitance: "1uF", footprint: "0603", pcbX: -10, pcbY: -24, schX: -6, schY: -4 }),
    React.createElement("resistor", { name: "R1", resistance: "5.1k", footprint: "0603", pcbX: -23, pcbY: -37, schX: -11, schY: 1 }),
    React.createElement("resistor", { name: "R2", resistance: "5.1k", footprint: "0603", pcbX: -17.5, pcbY: -37, schX: -11, schY: 0 }),
    React.createElement("resistor", { name: "R3", resistance: "100k", footprint: "0603", pcbX: -9, pcbY: -29, schX: -1, schY: -3 }),
    React.createElement("resistor", { name: "R4", resistance: "10k", footprint: "0603", pcbX: 10, pcbY: -26, schX: 2, schY: -3 }),
    React.createElement("resistor", { name: "RSTAT", resistance: "2.2k", footprint: "0603", pcbX: -34, pcbY: -19, schX: -2, schY: -5 }),
    React.createElement("led", { name: "D_STATUS", color: "green", footprint: "0603", pcbX: -39, pcbY: -22, schX: 0, schY: -5 }),
    React.createElement("pinheader", { name: "J2", pinCount: 4, pinLabels: ["GND", "SDA", "SCL", "3V3"], footprint: "pinrow4", pcbX: -14, pcbY: 29, pcbRotation: 0, schX: 9, schY: 2 }),
    React.createElement("pinheader", { name: "J3", pinCount: 3, pinLabels: ["GND", "PWM_DIM", "LOAD_EN"], footprint: "pinrow3", pcbX: 15, pcbY: 29, pcbRotation: 0, schX: 9, schY: -2 }),
    Array.from({ length: 8 }, (_, i) => (React.createElement(LedString, { key: i, stringIndex: i, startLedIndex: i * 3 + 1 }))),
    [45, 135, 225, 315].map((angle) => {
        const p = polar(50, angle);
        return React.createElement("hole", { key: angle, diameter: "3.2mm", pcbX: p.x, pcbY: p.y });
    }),
    React.createElement(TestPad, { name: "TP_VBUS", pcbX: -30, pcbY: -42 }),
    React.createElement(TestPad, { name: "TP_VLED", pcbX: 28, pcbY: -18 }),
    React.createElement(TestPad, { name: "TP_GND", pcbX: 33, pcbY: -38 }),
    React.createElement("trace", { from: ".J1 .A4B9", to: "net.VBUS_C", width: "0.35mm" }),
    React.createElement("trace", { from: ".J1 .B4A9", to: "net.VBUS_C", width: "0.35mm" }),
    React.createElement("trace", { from: ".J1 .A1B12", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .B1A12", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .EH1", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .EH2", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .EH3", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .EH4", to: "net.GND" }),
    React.createElement("trace", { from: ".J1 .A5", to: ".U1 .CC1" }),
    React.createElement("trace", { from: ".J1 .B5", to: ".U1 .CC2" }),
    React.createElement("trace", { from: ".F1 .pin1", to: "net.VBUS_C", width: "0.45mm" }),
    React.createElement("trace", { from: ".F1 .pin2", to: "net.VBUS_FUSED", width: "0.45mm" }),
    React.createElement("trace", { from: ".D_TVS1 .anode", to: "net.GND" }),
    React.createElement("trace", { from: ".D_TVS1 .cathode", to: "net.VBUS_C" }),
    React.createElement("trace", { from: ".TP_VBUS .pin1", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".U1 .VBUS_VS_DISCH", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".U1 .DISCH", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".U1 .VSYS", to: "net.V3V3" }),
    React.createElement("trace", { from: ".U1 .VDD", to: "net.V3V3" }),
    React.createElement("trace", { from: ".U1 .VREG_1V2", to: ".C4 .pin1" }),
    React.createElement("trace", { from: ".U1 .VREG_2V7", to: ".C5 .pin1" }),
    React.createElement("trace", { from: ".U1 .GND", to: "net.GND" }),
    React.createElement("trace", { from: ".U1 .EP", to: "net.GND" }),
    React.createElement("trace", { from: ".U1 .ADDR0", to: "net.GND" }),
    React.createElement("trace", { from: ".U1 .RESET", to: "net.V3V3" }),
    React.createElement("trace", { from: ".U1 .SDA", to: "net.I2C_SDA" }),
    React.createElement("trace", { from: ".U1 .SCL", to: "net.I2C_SCL" }),
    React.createElement("trace", { from: ".U1 .VBUS_EN_SNK", to: ".R4 .pin1" }),
    React.createElement("trace", { from: ".R4 .pin2", to: "net.LOAD_EN" }),
    React.createElement("trace", { from: ".U2 .VIN", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".U2 .EN", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".U2 .VOUT", to: "net.V3V3" }),
    React.createElement("trace", { from: ".U2 .GND", to: "net.GND" }),
    React.createElement("trace", { from: ".C1 .pin1", to: "net.VBUS_FUSED" }),
    React.createElement("trace", { from: ".C1 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".C2 .pin1", to: "net.V3V3" }),
    React.createElement("trace", { from: ".C2 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".C3 .pin1", to: "net.V3V3" }),
    React.createElement("trace", { from: ".C3 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".C4 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".C5 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".U3 .VIN", to: "net.VBUS_FUSED", width: "0.45mm" }),
    React.createElement("trace", { from: ".U3 .VOUT", to: "net.VLED", width: "0.45mm" }),
    React.createElement("trace", { from: ".U3 .ON", to: "net.LOAD_EN" }),
    React.createElement("trace", { from: ".U3 .GND", to: "net.GND" }),
    React.createElement("trace", { from: ".TP_VLED .pin1", to: "net.VLED" }),
    React.createElement("trace", { from: ".TP_GND .pin1", to: "net.GND" }),
    React.createElement("trace", { from: ".R1 .pin1", to: ".J1 .A5" }),
    React.createElement("trace", { from: ".R1 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".R2 .pin1", to: ".J1 .B5" }),
    React.createElement("trace", { from: ".R2 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".R3 .pin1", to: "net.LOAD_EN" }),
    React.createElement("trace", { from: ".R3 .pin2", to: "net.GND" }),
    React.createElement("trace", { from: ".RSTAT .pin1", to: "net.V3V3" }),
    React.createElement("trace", { from: ".RSTAT .pin2", to: ".D_STATUS .anode" }),
    React.createElement("trace", { from: ".D_STATUS .cathode", to: ".U1 .ATTACH" }),
    React.createElement("trace", { from: ".J2 .GND", to: "net.GND" }),
    React.createElement("trace", { from: ".J2 .SDA", to: "net.I2C_SDA" }),
    React.createElement("trace", { from: ".J2 .SCL", to: "net.I2C_SCL" }),
    React.createElement("trace", { from: ".J2 .3V3", to: "net.V3V3" }),
    React.createElement("trace", { from: ".J3 .GND", to: "net.GND" }),
    React.createElement("trace", { from: ".J3 .PWM_DIM", to: "net.PWM_DIM" }),
    React.createElement("trace", { from: ".J3 .LOAD_EN", to: "net.LOAD_EN" }),
    React.createElement("copperpour", { connectsTo: "net.GND", layer: "bottom", cutoutMargin: "0.4mm" })));

module.exports = index;