Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$scene$graphics$shared$svg$utils$fillOperations.js
2026-07-01 22:38:29 -06:00

21 lines
984 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$graphics$shared$svg$utils$fillOperations = function(global, require, module, exports) {
exports.checkForNestedPattern = function(subpathsWithArea) {
if (2 >= subpathsWithArea.length) {
return !0;
}
subpathsWithArea = subpathsWithArea.map(s => s.area).sort((a, b) => b - a);
const [largestArea, secondArea] = subpathsWithArea;
subpathsWithArea = subpathsWithArea[subpathsWithArea.length - 1];
return 3 < largestArea / secondArea && 2 > secondArea / subpathsWithArea ? !1 : !0;
};
exports.getFillInstructionData = function(context, index = 0) {
context = context.instructions[index];
if (!context || "fill" !== context.action) {
throw Error(`Expected fill instruction at index ${index}, got ${context?.action || "undefined"}`);
}
return context.data;
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$graphics$shared$svg$utils$fillOperations.js.map