phosphor-boxpanel
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -5,22 +5,2 @@ import { Message } from 'phosphor-messaging'; | ||
/** | ||
* `p-BoxPanel`: the class name added to BoxPanel instances. | ||
*/ | ||
export declare const BOX_PANEL_CLASS: string; | ||
/** | ||
* `p-mod-left-to-right`: the class name added to ltr box panels. | ||
*/ | ||
export declare const LEFT_TO_RIGHT_CLASS: string; | ||
/** | ||
* `p-mod-right-to-left`: the class name added to rtl box panels. | ||
*/ | ||
export declare const RIGHT_TO_LEFT_CLASS: string; | ||
/** | ||
* `p-mod-top-to-bottom`: the class name added to ttb box panels. | ||
*/ | ||
export declare const TOP_TO_BOTTOM_CLASS: string; | ||
/** | ||
* `p-mod-bottom-to-top`: the class name added to btt box panels. | ||
*/ | ||
export declare const BOTTOM_TO_TOP_CLASS: string; | ||
/** | ||
* The layout direction of a box panel. | ||
@@ -51,2 +31,22 @@ */ | ||
/** | ||
* The class name added to BoxPanel instances. | ||
*/ | ||
static p_BoxPanel: string; | ||
/** | ||
* The class name added to left-to-right box panels. | ||
*/ | ||
static p_mod_left_to_right: string; | ||
/** | ||
* The class name added to right-to-left box panels. | ||
*/ | ||
static p_mod_right_to_left: string; | ||
/** | ||
* The class name added to top-to-bottom box panels. | ||
*/ | ||
static p_mod_top_to_bottom: string; | ||
/** | ||
* The class name added to bottom-to-top box panels. | ||
*/ | ||
static p_mod_bottom_to_top: string; | ||
/** | ||
* A convenience alias of the `LeftToRight` [[Direction]]. | ||
@@ -53,0 +53,0 @@ */ |
@@ -21,22 +21,2 @@ /*----------------------------------------------------------------------------- | ||
/** | ||
* `p-BoxPanel`: the class name added to BoxPanel instances. | ||
*/ | ||
exports.BOX_PANEL_CLASS = 'p-BoxPanel'; | ||
/** | ||
* `p-mod-left-to-right`: the class name added to ltr box panels. | ||
*/ | ||
exports.LEFT_TO_RIGHT_CLASS = 'p-mod-left-to-right'; | ||
/** | ||
* `p-mod-right-to-left`: the class name added to rtl box panels. | ||
*/ | ||
exports.RIGHT_TO_LEFT_CLASS = 'p-mod-right-to-left'; | ||
/** | ||
* `p-mod-top-to-bottom`: the class name added to ttb box panels. | ||
*/ | ||
exports.TOP_TO_BOTTOM_CLASS = 'p-mod-top-to-bottom'; | ||
/** | ||
* `p-mod-bottom-to-top`: the class name added to btt box panels. | ||
*/ | ||
exports.BOTTOM_TO_TOP_CLASS = 'p-mod-bottom-to-top'; | ||
/** | ||
* The layout direction of a box panel. | ||
@@ -75,4 +55,4 @@ */ | ||
this._sizers = []; | ||
this.addClass(exports.BOX_PANEL_CLASS); | ||
this.addClass(exports.TOP_TO_BOTTOM_CLASS); | ||
this.addClass(BoxPanel.p_BoxPanel); | ||
this.addClass(BoxPanel.p_mod_top_to_bottom); | ||
} | ||
@@ -413,9 +393,29 @@ /** | ||
BoxPanel.prototype._onDirectionChanged = function (old, value) { | ||
this.toggleClass(exports.LEFT_TO_RIGHT_CLASS, value === Direction.LeftToRight); | ||
this.toggleClass(exports.RIGHT_TO_LEFT_CLASS, value === Direction.RightToLeft); | ||
this.toggleClass(exports.TOP_TO_BOTTOM_CLASS, value === Direction.TopToBottom); | ||
this.toggleClass(exports.BOTTOM_TO_TOP_CLASS, value === Direction.BottomToTop); | ||
this.toggleClass(BoxPanel.p_mod_left_to_right, value === Direction.LeftToRight); | ||
this.toggleClass(BoxPanel.p_mod_right_to_left, value === Direction.RightToLeft); | ||
this.toggleClass(BoxPanel.p_mod_top_to_bottom, value === Direction.TopToBottom); | ||
this.toggleClass(BoxPanel.p_mod_bottom_to_top, value === Direction.BottomToTop); | ||
phosphor_messaging_1.postMessage(this, phosphor_widget_1.MSG_LAYOUT_REQUEST); | ||
}; | ||
/** | ||
* The class name added to BoxPanel instances. | ||
*/ | ||
BoxPanel.p_BoxPanel = 'p-BoxPanel'; | ||
/** | ||
* The class name added to left-to-right box panels. | ||
*/ | ||
BoxPanel.p_mod_left_to_right = 'p-mod-left-to-right'; | ||
/** | ||
* The class name added to right-to-left box panels. | ||
*/ | ||
BoxPanel.p_mod_right_to_left = 'p-mod-right-to-left'; | ||
/** | ||
* The class name added to top-to-bottom box panels. | ||
*/ | ||
BoxPanel.p_mod_top_to_bottom = 'p-mod-top-to-bottom'; | ||
/** | ||
* The class name added to bottom-to-top box panels. | ||
*/ | ||
BoxPanel.p_mod_bottom_to_top = 'p-mod-bottom-to-top'; | ||
/** | ||
* A convenience alias of the `LeftToRight` [[Direction]]. | ||
@@ -422,0 +422,0 @@ */ |
{ | ||
"name": "phosphor-boxpanel", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "A Phosphor layout widget which arranges its children into a single row or column.", | ||
@@ -12,3 +12,3 @@ "main": "lib/index.js", | ||
"phosphor-properties": "^1.2.0", | ||
"phosphor-widget": "^0.9.10" | ||
"phosphor-widget": "^0.9.11" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
33178
Updatedphosphor-widget@^0.9.11