feat(all): 后处理迁移
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
import { t } from "@/language";
|
||||
|
||||
// Blend mode options for post-processing blendFunction config.
|
||||
const BLEND_FUNCTION_KEYS = [
|
||||
"NORMAL",
|
||||
"ADD",
|
||||
"ALPHA",
|
||||
"AVERAGE",
|
||||
"COLOR",
|
||||
"COLOR_BURN",
|
||||
"COLOR_DODGE",
|
||||
"DARKEN",
|
||||
"DIFFERENCE",
|
||||
"DIVIDE",
|
||||
"DST",
|
||||
"EXCLUSION",
|
||||
"HARD_LIGHT",
|
||||
"HARD_MIX",
|
||||
"HUE",
|
||||
"INVERT",
|
||||
"INVERT_RGB",
|
||||
"LIGHTEN",
|
||||
"LINEAR_BURN",
|
||||
"LINEAR_DODGE",
|
||||
"LINEAR_LIGHT",
|
||||
"LUMINOSITY",
|
||||
"MULTIPLY",
|
||||
"NEGATION",
|
||||
"OVERLAY",
|
||||
"PIN_LIGHT",
|
||||
"REFLECT",
|
||||
"SATURATION",
|
||||
"SCREEN",
|
||||
"SET",
|
||||
"SOFT_LIGHT",
|
||||
"SRC",
|
||||
"SUBTRACT",
|
||||
"VIVID_LIGHT",
|
||||
] as const;
|
||||
|
||||
export const blendFunctionOptions = BLEND_FUNCTION_KEYS.map(k => ({ label: k, value: k }));
|
||||
|
||||
// Glitch mode options.
|
||||
export const glitchModeOptions = [
|
||||
{ label: t("layout.sider.postProcessing.Sporadic"), value: "SPORADIC" },
|
||||
{ label: t("layout.sider.postProcessing.Constant Mild"), value: "CONSTANT_MILD" },
|
||||
{ label: t("layout.sider.postProcessing.Constant Wild"), value: "CONSTANT_WILD" },
|
||||
];
|
||||
Reference in New Issue
Block a user