2023-09-24 18:39:52 +02:00
|
|
|
const config = {
|
|
|
|
artboard: {
|
|
|
|
minimumZoom: 0.01,
|
|
|
|
maximumZoom: 200,
|
|
|
|
incrementZoom: 0.01,
|
|
|
|
maximumPixelDensity: 3.0,
|
|
|
|
incrementPixelDensity: 0.01,
|
|
|
|
friendlyNames: {
|
2023-10-20 13:29:15 +02:00
|
|
|
'color': 'Background<br>Color',
|
2023-09-24 18:39:52 +02:00
|
|
|
'x': 'Position X',
|
|
|
|
'y': 'Position Y',
|
|
|
|
'width': 'Artboard Width',
|
|
|
|
'height': 'Artboard Height',
|
|
|
|
'zoom': 'Zoom',
|
|
|
|
'pixelDensity': 'Preview<br>Resolution',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
layer: {
|
|
|
|
defaultFonts: ['Version-2', 'TonkaVF'],
|
|
|
|
letterDelayProps: ['fontSize_px', 'letterSpacing', 'color', 'fontVariationAxes'],
|
|
|
|
autoCreateFirstLayer: true,
|
|
|
|
defaultTexts: ['text', 'variable time', 'hello world'],
|
|
|
|
panelOrder: [
|
|
|
|
'fontFamily',
|
|
|
|
'textAlignButtonsHorizontal',
|
|
|
|
'textAlignment',
|
|
|
|
'width',
|
|
|
|
'height',
|
|
|
|
'fontSize_px',
|
|
|
|
'letterSpacing',
|
|
|
|
'lineHeight',
|
|
|
|
'text',
|
|
|
|
'fontVariationAxes',
|
|
|
|
'x',
|
|
|
|
'y',
|
|
|
|
'alignButtonsHorizontal',
|
|
|
|
'alignButtonsVertical',
|
|
|
|
'rotation',
|
|
|
|
'transformOrigin',
|
|
|
|
'mirror_x',
|
|
|
|
'mirror_x_distance',
|
|
|
|
'mirror_y',
|
|
|
|
'mirror_y_distance',
|
|
|
|
'mirror_xy',
|
|
|
|
'color',
|
|
|
|
'letterDelays',
|
|
|
|
],
|
2023-10-01 15:21:33 +02:00
|
|
|
orderSpacing: 2,
|
2023-09-24 18:39:52 +02:00
|
|
|
friendlyNames: {
|
|
|
|
'fontFamily': 'Font Family',
|
|
|
|
'textAlignButtonsHorizontal': '',
|
|
|
|
'textAlignment': 'Text Alignment',
|
|
|
|
'width': 'Wrapper Width',
|
|
|
|
'height': '',
|
|
|
|
'fontSize_px': 'Font Size',
|
|
|
|
'letterSpacing': 'Letter Spacing',
|
|
|
|
'lineHeight': 'Line Height',
|
|
|
|
'text': 'Text',
|
|
|
|
'fontVariationAxes': 'Variable Axes',
|
|
|
|
'x': 'Position X',
|
|
|
|
'y': 'Position Y',
|
|
|
|
'alignButtonsHorizontal': '',
|
|
|
|
'alignButtonsVertical': '',
|
|
|
|
'rotation': 'Rotation',
|
|
|
|
'transformOrigin': 'Rotation Origin',
|
|
|
|
'mirror_x': 'Mirror X',
|
2023-10-10 12:05:40 +02:00
|
|
|
'mirror_x_distance': 'X Distance',
|
2023-09-24 18:39:52 +02:00
|
|
|
'mirror_y': 'Mirror Y',
|
2023-10-10 12:05:40 +02:00
|
|
|
'mirror_y_distance': 'Y Distance',
|
2023-09-24 18:39:52 +02:00
|
|
|
'mirror_xy': 'Mirrox XY',
|
|
|
|
'color': 'Color',
|
|
|
|
'letterDelays': 'Letter Delays',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tp: {
|
|
|
|
addKeyframesTimeout_s: 0.01,
|
|
|
|
},
|
|
|
|
projects: {
|
|
|
|
savePrefix: 'vte_project_'
|
|
|
|
},
|
|
|
|
interactor: {
|
|
|
|
zoomBaseFactor: 0.001,
|
|
|
|
zoomDynamicMax: 42,
|
|
|
|
},
|
2023-09-27 13:10:28 +02:00
|
|
|
audio: {
|
2023-10-10 15:13:53 +02:00
|
|
|
defaultRange: { // check audio.getDefaultRange for dynamic defaults
|
|
|
|
'textAlignment': [0, 1],
|
|
|
|
'fontSize_px': [42, 100],
|
|
|
|
'letterSpacing': [0, 1],
|
|
|
|
'lineHeight': [0, 1],
|
|
|
|
'rotation': [0, 180],
|
|
|
|
'mirror_x_distance': [0, 200],
|
|
|
|
'mirror_y_distance': [0, 70],
|
|
|
|
'color': [0, 1],
|
|
|
|
'letterDelays': [0, 1000],
|
|
|
|
},
|
2023-10-20 13:29:15 +02:00
|
|
|
ignoreProps: {
|
|
|
|
artboard: ['x', 'y', 'zoom', 'pixelDensity', 'width', 'height'],
|
|
|
|
layer: ['transformOrigin', 'fontFamily', 'text', 'mirror_x', 'mirror_y', 'mirror_xy', 'height'],
|
|
|
|
},
|
2023-10-13 16:24:34 +02:00
|
|
|
maxFilenameLength: 24,
|
2023-09-27 13:10:28 +02:00
|
|
|
defaultSmoothing: 0.7,
|
2023-10-13 16:24:34 +02:00
|
|
|
analyser: {
|
|
|
|
fftSize: 256 * 8,
|
|
|
|
minDecibels: -90,
|
|
|
|
maxDecibels: -10,
|
|
|
|
smoothingTimeConstant: 0.85,
|
|
|
|
},
|
2023-10-02 10:05:20 +02:00
|
|
|
fftBandsAnalysed: 256 * 8,
|
2023-10-08 21:26:22 +02:00
|
|
|
fftBandsUsed: 256 / 2,
|
|
|
|
fftHeight: 256 / 4,
|
2023-10-08 15:57:29 +02:00
|
|
|
colorSeparateRGBA: true,
|
2023-10-10 12:34:52 +02:00
|
|
|
ignoreOutboundFrequencies: true,
|
|
|
|
pitchCombineFrequencies: false,
|
2023-10-13 11:29:18 +02:00
|
|
|
rolloverResetLoop: true,
|
2023-09-27 13:10:28 +02:00
|
|
|
},
|
2023-09-28 16:41:11 +02:00
|
|
|
record: {
|
2023-10-24 07:41:44 +02:00
|
|
|
active: false,
|
2023-10-20 13:29:15 +02:00
|
|
|
ignoreProps: {
|
|
|
|
artboard: ['x', 'y', 'zoom', 'pixelDensity', 'width', 'height'],
|
|
|
|
layer: ['transformOrigin', 'fontFamily', 'text', 'mirror_x', 'mirror_y', 'mirror_xy'],
|
|
|
|
},
|
2023-10-07 12:21:36 +02:00
|
|
|
recordMapped: true,
|
2023-09-28 16:41:11 +02:00
|
|
|
},
|
2023-09-24 18:39:52 +02:00
|
|
|
midi: {
|
|
|
|
touchTimeThreshold_s: 0.5,
|
|
|
|
smoothingMix: 0.1,
|
|
|
|
},
|
|
|
|
fs: {
|
|
|
|
idbfsDir: '/idbfs',
|
|
|
|
idbfsFontDir: '/idbfs/fonts',
|
2023-10-12 21:32:38 +02:00
|
|
|
idbfsAudioDir: '/idbfs/audio',
|
2023-09-24 18:39:52 +02:00
|
|
|
idbfsTmpDir: '/idbfs/tmp',
|
|
|
|
},
|
|
|
|
timeline: {
|
|
|
|
rolloverReset: true,
|
|
|
|
rolloverThreshold_s: 0.02,
|
|
|
|
},
|
|
|
|
autoSave: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
const Config = function() {
|
|
|
|
const configKeys = Object.keys(config);
|
|
|
|
for (let c = 0; c < configKeys.length; c++) {
|
|
|
|
const key = configKeys[c];
|
|
|
|
this[key] = config[key];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export {
|
|
|
|
Config
|
|
|
|
}
|