|
|
@ -59,7 +59,7 @@ class Modifier { |
|
|
|
*/ |
|
|
|
padding(siding) { |
|
|
|
let keyToAdd = ""; |
|
|
|
if (siding instanceof ChainablePadding || siding instanceof PaddingChain) { |
|
|
|
if (siding instanceof PaddingChain) { |
|
|
|
|
|
|
|
} else if (siding instanceof Sides) { |
|
|
|
keyToAdd = "padding-" |
|
|
@ -225,30 +225,6 @@ class ChainableModifier extends Modifier { |
|
|
|
this._component = component; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @returns {ChainableDimensions} |
|
|
|
*/ |
|
|
|
linkDimensions() { |
|
|
|
return new ChainableDimensions(this); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @returns {ChainablePadding} |
|
|
|
*/ |
|
|
|
linkPadding() { |
|
|
|
return new ChainablePadding(this); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @returns {ChainableShape} |
|
|
|
*/ |
|
|
|
linkClip() { |
|
|
|
return new ChainableShape(this); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @returns {Component} |
|
|
@ -259,18 +235,7 @@ class ChainableModifier extends Modifier { |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {Component} innerComponent |
|
|
|
* @returns {Component} the parent Component |
|
|
|
*/ |
|
|
|
childContext(innerComponent) { |
|
|
|
return this._component |
|
|
|
.modifier(this) |
|
|
|
.childContext(innerComponent); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {Array<Component>} innerComponent |
|
|
|
* @param {Component|Array<Component>} innerComponent |
|
|
|
* @returns {Component} the parent Component |
|
|
|
*/ |
|
|
|
childContext(innerComponent) { |
|
|
|