@kitten-science/kitten-analysts
Version:
24 lines • 858 B
JavaScript
import { ucfirst } from "@kitten-science/kitten-scientists/tools/Format.js";
import { gaugeFactory } from "./factory.js";
export const kg_pollution_production = (cache, remote) => gaugeFactory({
cache,
extract(client_type, guid, location, element, subject) {
// This is tracked in kg_pollution_total
if (element.name === "cathPollution") {
return;
}
subject.set({
client_type,
guid,
label: ucfirst(element.label),
location,
name: element.name,
}, element.pollution);
},
help: "How much pollution buildings currently generate.",
labelNames: ["client_type", "guid", "label", "location", "name"],
name: "kg_pollution_production",
remote,
require: "getPollution",
});
//# sourceMappingURL=kg_pollution_prodution.js.map