1 |
- {"version":3,"file":"7201.js","mappings":"iKACe,SAASA,EAAaC,GACjC,MAAM,MAAEC,EAAK,SAAEC,IAAaC,EAAAA,EAAAA,IAASH,EAAM,GACrCI,EAAMC,KAAKD,OAAOH,GAExB,OAAOC,EADOD,EAAMK,WAAUC,GAASA,GAASH,IAEpD,C","sources":["webpack://sakurairo-scripts/./src/app/theme-color/calc.ts"],"sourcesContent":["import { neuquant } from '@kotorik/palette';\nexport default function neuquantCalc(data) {\n const { label, centroid } = neuquant(data, 8);\n const max = Math.max(...label);\n const index = label.findIndex(value => value == max);\n return centroid[index];\n}\n"],"names":["neuquantCalc","data","label","centroid","neuquant","max","Math","findIndex","value"],"sourceRoot":""}
|