infusion
Version:
Infusion is an application framework for developing flexible stuff with JavaScript
40 lines (32 loc) • 1.45 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/master/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/master/Infusion-LICENSE.txt
*/
var fluid_3_0_0 = fluid_3_0_0 || {};
(function ($, fluid) {
"use strict";
/*******************************************************************************
* letterSpace
*
* Sets the letter space on the container to the number of units to increase
* the letter space by. If a negative number is provided, the space between
* characters will decrease. Setting the value to 1 or unit to 0 will use the
* default letter space.
*******************************************************************************/
// Note that the implementors need to provide the container for this view component
fluid.defaults("fluid.prefs.enactor.letterSpace", {
gradeNames: ["fluid.prefs.enactor.spacingSetter"],
preferenceMap: {
"fluid.prefs.letterSpace": {
"model.value": "value"
}
},
cssProp: "letter-spacing"
});
})(jQuery, fluid_3_0_0);