Browse Source

REFA,STEP,DOC,FIX: some docs and obvious errors

master
chris 2 months ago
parent
commit
94ef6186cf
  1. 1
      src/context.js
  2. 7
      src/context/scriptAndStyleContext.js
  3. 8
      src/sizeSide/siding.js

1
src/context.js

@ -131,6 +131,7 @@ class PageBuilder extends ScriptAndStyleContext {
* Little helper function.
* If a single page application is in development.
* This method sets an autoreload interval for the page.
* Default is 20 (sec).
* @param {number} relaunchSeconds timeinterval for page to reload (changes)
*/
inDev(relaunchSeconds = 20) {

7
src/context/scriptAndStyleContext.js

@ -127,7 +127,7 @@ class ScriptAndStyleContext {
underTheName.trim(),
fun.name.trim(),
this.getFunctionName()
].find(e !== '');
].find(e => e !== '');
/* deal with name already present */
let functionNames = Object.keys(this.#functions);
@ -200,7 +200,10 @@ class ScriptAndStyleContext {
/**
* Adds the styling rules to the element identifiers into the style tag.
* An elementDefinition can only be used once, repeated use will be ignored.
* An element definition can only be used once, repeated use will be ignored.
*
* @todo implement extStore logic
*
* @param {string} elementIdentifier The element identifier
* @param {map<string, string>} styleRuleMap The Styling rules/values
*/

8
src/sizeSide/siding.js

@ -12,7 +12,9 @@ const SizeUnits = Object.freeze({
PERCENT: "%"
})
/**
*
*/
class DirectionUnitDependentAttribute {
_unit;
_fFirst;
@ -209,7 +211,9 @@ class Sides extends DirectionUnitDependentAttribute {
}
}
/**
*
*/
class PaddingChain extends Sides {
_modifier;
constructor(modifier) {

Loading…
Cancel
Save