enhance(frontend/image-effector): tweak fxs
This commit is contained in:
parent
3dbfd80d65
commit
5bec8ba6b0
|
@ -58,6 +58,7 @@ export const FX_checker = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 90) + '°',
|
||||||
},
|
},
|
||||||
scale: {
|
scale: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -76,6 +77,7 @@ export const FX_checker = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
main: ({ gl, u, params }) => {
|
main: ({ gl, u, params }) => {
|
||||||
|
|
|
@ -37,6 +37,7 @@ export const FX_colorClamp = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
min: {
|
min: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -44,6 +45,7 @@ export const FX_colorClamp = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 0.0,
|
max: 0.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
main: ({ gl, u, params }) => {
|
main: ({ gl, u, params }) => {
|
||||||
|
|
|
@ -41,6 +41,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
rMin: {
|
rMin: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -48,6 +49,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 0.0,
|
max: 0.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
gMax: {
|
gMax: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -55,6 +57,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
gMin: {
|
gMin: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -62,6 +65,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 0.0,
|
max: 0.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
bMax: {
|
bMax: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -69,6 +73,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
bMin: {
|
bMin: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -76,6 +81,7 @@ export const FX_colorClampAdvanced = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 0.0,
|
max: 0.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
main: ({ gl, u, params }) => {
|
main: ({ gl, u, params }) => {
|
||||||
|
|
|
@ -50,6 +50,7 @@ export const FX_distort = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
frequency: {
|
frequency: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -64,6 +65,7 @@ export const FX_distort = defineImageEffectorFx({
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
main: ({ gl, u, params }) => {
|
main: ({ gl, u, params }) => {
|
||||||
|
|
|
@ -90,6 +90,7 @@ export const FX_polkadot = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 90) + '°',
|
||||||
},
|
},
|
||||||
scale: {
|
scale: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -111,6 +112,7 @@ export const FX_polkadot = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
minorDivisions: {
|
minorDivisions: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -132,6 +134,7 @@ export const FX_polkadot = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
type: 'color' as const,
|
type: 'color' as const,
|
||||||
|
|
|
@ -60,6 +60,7 @@ export const FX_stripe = defineImageEffectorFx({
|
||||||
min: -1.0,
|
min: -1.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 90) + '°',
|
||||||
},
|
},
|
||||||
frequency: {
|
frequency: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
|
@ -74,6 +75,7 @@ export const FX_stripe = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
type: 'color' as const,
|
type: 'color' as const,
|
||||||
|
@ -85,6 +87,7 @@ export const FX_stripe = defineImageEffectorFx({
|
||||||
min: 0.0,
|
min: 0.0,
|
||||||
max: 1.0,
|
max: 1.0,
|
||||||
step: 0.01,
|
step: 0.01,
|
||||||
|
toViewValue: v => Math.round(v * 100) + '%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
main: ({ gl, u, params }) => {
|
main: ({ gl, u, params }) => {
|
||||||
|
|
Loading…
Reference in New Issue