Compare commits

...

1 Commits

  1. 19
      src/modifier/Modifier.js

19
src/modifier/Modifier.js

@ -4,6 +4,10 @@
* _modifications: {Object} * _modifications: {Object}
*/ */
class Modifier { class Modifier {
/**
* @type {string} _identifier
*/
_identifier;
/** /**
* @type {Map<string,string>} _modifications * @type {Map<string,string>} _modifications
*/ */
@ -21,11 +25,24 @@ class Modifier {
*/ */
_paddingValues; _paddingValues;
constructor() { constructor(identifier = null) {
if (identifier) {
this._identifier = identifier;
}
this._modifications = new Object(); this._modifications = new Object();
this._removeMods = []; this._removeMods = [];
} }
/**
*
* @param {string} identifier
* @returns {Modifier|ChainableModifier}
*/
setIdentifier(identifier) {
this._identifier = identifier;
return this;
}
/** /**
* Sets the modifications for widht and height to 100%. * Sets the modifications for widht and height to 100%.
* @returns {Modifier} this modifier object * @returns {Modifier} this modifier object

Loading…
Cancel
Save