UNPKG

infusion

Version:

Infusion is an application framework for developing flexible stuff with JavaScript

42 lines (36 loc) 1.45 kB
/* 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"; /******************************************************************************* * 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" } }, styles: { enabled: "fl-letterSpace-enabled" }, cssProp: "letter-spacing", cssCustomProp: { factor: "--fl-letterSpace-factor", size: "--fl-letterSpace" } });