infusion
Version:
Infusion is an application framework for developing flexible stuff with JavaScript
67 lines (57 loc) • 2.15 kB
JavaScript
/*
Copyright The Infusion copyright holders
See the AUTHORS.md file at the top-level directory of this distribution and at
https://github.com/fluid-project/infusion/raw/main/AUTHORS.md.
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
https://github.com/fluid-project/infusion/raw/main/Infusion-LICENSE.txt
*/
"use strict";
/*******************************************************************************
* Auxiliary schema grade
*
* Contains the settings for the word space preference
*******************************************************************************/
fluid.defaults("fluid.prefs.auxSchema.wordSpace", {
gradeNames: ["fluid.prefs.auxSchema"],
auxiliarySchema: {
"fluid.prefs.wordSpace": {
enactor: {
type: "fluid.prefs.enactor.wordSpace",
fontSizeMap: {
"xx-small": "9px",
"x-small": "11px",
"small": "13px",
"medium": "15px",
"large": "18px",
"x-large": "23px",
"xx-large": "30px"
}
},
panel: {
type: "fluid.prefs.panel.wordSpace",
container: ".flc-prefsEditor-word-space",
template: "%templatePrefix/PrefsEditorTemplate-wordSpace.html",
message: "%messagePrefix/wordSpace.json"
}
}
}
});
/*******************************************************************************
* Primary Schema
*******************************************************************************/
// add extra prefs to the starter primary schemas
fluid.defaults("fluid.prefs.schemas.wordSpace", {
gradeNames: ["fluid.prefs.schemas"],
schema: {
"fluid.prefs.wordSpace": {
"type": "number",
"default": 1,
"minimum": 0.7,
"maximum": 2,
"multipleOf": 0.1
}
}
});