var LineMedium = /* @__PURE__ */ ((LineMedium2) => {
  LineMedium2["normal"] = "normal";
  LineMedium2["empty"] = "empty";
  LineMedium2["water"] = "water";
  LineMedium2["air"] = "air";
  return LineMedium2;
})(LineMedium || {});
var LineType = /* @__PURE__ */ ((LineType2) => {
  LineType2["fluid"] = "fluid";
  LineType2["electric"] = "electric";
  LineType2["air"] = "air";
  LineType2["connector"] = "connector";
  return LineType2;
})(LineType || {});
function lineColor(medium) {
  let innerColor = "--automation-pipe-primary-color";
  if (medium === "empty") {
    innerColor = "--automation-pipe-primary-inverted-color";
  } else if (medium === "water" || medium === "air") {
    innerColor = "--automation-fresh-water";
  }
  return { inner: innerColor, outer: "--automation-pipe-tertiary-color" };
}
function lineWidth(lineType) {
  if (lineType === "electric") {
    return 2;
  } else if (lineType === "connector") {
    return 1;
  } else if (lineType === "fluid") {
    return 4;
  } else if (lineType === "air") {
    return 10;
  }
  throw new Error("Unknown line type");
}
export {
  LineMedium,
  LineType,
  lineColor,
  lineWidth
};
//# sourceMappingURL=index.js.map
