121 lines
2.5 KiB
JavaScript
121 lines
2.5 KiB
JavaScript
/*
|
|
* Import of all methods used by the editor
|
|
*/
|
|
import {
|
|
defaultSa,
|
|
defaultSamm,
|
|
menuCoreSettingsOnlyHandler,
|
|
menuCoreSettingsSaboolHandler,
|
|
menuCoreSettingsSammHandler,
|
|
menuCoreSettingsStructure,
|
|
} from './core-settings.mjs'
|
|
import { findOption, getOptionStructure, menuDesignOptionsStructure } from './design-options.mjs'
|
|
import { menuLayoutSettingsStructure } from './layout-settings.mjs'
|
|
import {
|
|
addUndoStep,
|
|
bundlePatternTranslations,
|
|
cloneObject,
|
|
cloudImageUrl,
|
|
draft,
|
|
flattenFlags,
|
|
getCoreSettingUndoStepData,
|
|
getDesignOptionUndoStepData,
|
|
getUiPreferenceUndoStepData,
|
|
getUndoStepData,
|
|
initialEditorState,
|
|
menuRoundPct,
|
|
menuValidateNumericValue,
|
|
menuValueWasChanged,
|
|
noop,
|
|
notEmpty,
|
|
objUpdate,
|
|
sample,
|
|
settingsValueIsCustom,
|
|
settingsValueCustomOrDefault,
|
|
statePrefixPath,
|
|
stateUpdateFactory,
|
|
stripNamespace,
|
|
t,
|
|
undoableObjUpdate,
|
|
} from './editor.mjs'
|
|
import {
|
|
capitalize,
|
|
formatDesignOptionValue,
|
|
formatFraction128,
|
|
formatImperial,
|
|
formatMm,
|
|
formatPercentage,
|
|
round,
|
|
roundMm,
|
|
fractionToDecimal,
|
|
measurementAsMm,
|
|
measurementAsUnits,
|
|
shortDate,
|
|
parseDistanceInput,
|
|
} from './formatting.mjs'
|
|
import { designMeasurements, missingMeasurements } from './measurements.mjs'
|
|
import { menuUiPreferencesStructure } from './ui-preferences.mjs'
|
|
|
|
/*
|
|
* Re-export as named exports
|
|
*/
|
|
export {
|
|
// core-settings.mjs
|
|
defaultSa,
|
|
defaultSamm,
|
|
menuCoreSettingsOnlyHandler,
|
|
menuCoreSettingsSaboolHandler,
|
|
menuCoreSettingsSammHandler,
|
|
menuCoreSettingsStructure,
|
|
// design-options.mjs
|
|
findOption,
|
|
getOptionStructure,
|
|
menuDesignOptionsStructure,
|
|
// layout-settings.mjs
|
|
menuLayoutSettingsStructure,
|
|
// editor.mjs
|
|
addUndoStep,
|
|
bundlePatternTranslations,
|
|
cloneObject,
|
|
cloudImageUrl,
|
|
draft,
|
|
flattenFlags,
|
|
getCoreSettingUndoStepData,
|
|
getDesignOptionUndoStepData,
|
|
getUiPreferenceUndoStepData,
|
|
getUndoStepData,
|
|
initialEditorState,
|
|
menuRoundPct,
|
|
menuValidateNumericValue,
|
|
menuValueWasChanged,
|
|
noop,
|
|
notEmpty,
|
|
objUpdate,
|
|
sample,
|
|
settingsValueIsCustom,
|
|
settingsValueCustomOrDefault,
|
|
statePrefixPath,
|
|
stateUpdateFactory,
|
|
stripNamespace,
|
|
t,
|
|
undoableObjUpdate,
|
|
// formatting.mjs
|
|
capitalize,
|
|
formatDesignOptionValue,
|
|
formatFraction128,
|
|
formatImperial,
|
|
formatMm,
|
|
formatPercentage,
|
|
round,
|
|
roundMm,
|
|
fractionToDecimal,
|
|
measurementAsMm,
|
|
measurementAsUnits,
|
|
shortDate,
|
|
parseDistanceInput,
|
|
// measurements.mjs
|
|
designMeasurements,
|
|
missingMeasurements,
|
|
// ui-preferences.mjs
|
|
menuUiPreferencesStructure,
|
|
}
|