-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bite the bullet and commit build outputs so that they are as accessib…
…le as possible for people that may not be able to run the build in some OS or setup. An upside of this is that examples and documentation can be served out of the box without having to build them. Remove package.json 'prepare' scripts because they are no longer needed, as installing from git will already include build outputs.
- Loading branch information
Showing
31 changed files
with
10,149 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
.vscode | ||
node_modules | ||
tmp/ | ||
es/ | ||
/coverage | ||
lib/ | ||
/cassowary.js | ||
|
||
*.lock | ||
*lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Layout attributes. | ||
* @enum {String} | ||
*/ | ||
declare var Attribute: { | ||
CONST: string; | ||
NOTANATTRIBUTE: string; | ||
VARIABLE: string; | ||
LEFT: string; | ||
RIGHT: string; | ||
TOP: string; | ||
BOTTOM: string; | ||
WIDTH: string; | ||
HEIGHT: string; | ||
CENTERX: string; | ||
CENTERY: string; | ||
/** Used by the extended VFL syntax. */ | ||
ZINDEX: string; | ||
}; | ||
export default Attribute; | ||
//# sourceMappingURL=Attribute.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Layout attributes. | ||
* @enum {String} | ||
*/ | ||
var Attribute = { | ||
CONST: 'const', | ||
NOTANATTRIBUTE: 'const', | ||
VARIABLE: 'var', | ||
LEFT: 'left', | ||
RIGHT: 'right', | ||
TOP: 'top', | ||
BOTTOM: 'bottom', | ||
WIDTH: 'width', | ||
HEIGHT: 'height', | ||
CENTERX: 'centerX', | ||
CENTERY: 'centerY', | ||
/*LEADING: 'leading', | ||
TRAILING: 'trailing'*/ | ||
/** Used by the extended VFL syntax. */ | ||
ZINDEX: 'zIndex', | ||
}; | ||
export default Attribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Attribute from './Attribute.js'; | ||
import Relation from './Relation.js'; | ||
import Priority from './Priority.js'; | ||
import VisualFormat from './VisualFormat.js'; | ||
import View from './View.js'; | ||
import SubView from './SubView.js'; | ||
declare var AutoLayout: { | ||
Attribute: { | ||
CONST: string; | ||
NOTANATTRIBUTE: string; | ||
VARIABLE: string; | ||
LEFT: string; | ||
RIGHT: string; | ||
TOP: string; | ||
BOTTOM: string; | ||
WIDTH: string; | ||
HEIGHT: string; | ||
CENTERX: string; | ||
CENTERY: string; | ||
ZINDEX: string; | ||
}; | ||
Relation: { | ||
LEQ: string; | ||
EQU: string; | ||
GEQ: string; | ||
}; | ||
Priority: { | ||
REQUIRED: number; | ||
DEFAULTHIGH: number; | ||
DEFAULTLOW: number; | ||
}; | ||
VisualFormat: typeof VisualFormat; | ||
View: typeof View; | ||
SubView: typeof SubView; | ||
}; | ||
export default AutoLayout; | ||
export { Attribute, Relation, Priority, VisualFormat, View, SubView }; | ||
//# sourceMappingURL=AutoLayout.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Attribute from './Attribute.js'; | ||
import Relation from './Relation.js'; | ||
import Priority from './Priority.js'; | ||
import VisualFormat from './VisualFormat.js'; | ||
import View from './View.js'; | ||
import SubView from './SubView.js'; | ||
var AutoLayout = { | ||
Attribute, | ||
Relation, | ||
Priority, | ||
VisualFormat, | ||
View, | ||
SubView, | ||
}; | ||
export default AutoLayout; | ||
export { Attribute, Relation, Priority, VisualFormat, View, SubView }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Layout priorities. | ||
* @enum {String} | ||
*/ | ||
declare var Priority: { | ||
REQUIRED: number; | ||
DEFAULTHIGH: number; | ||
DEFAULTLOW: number; | ||
}; | ||
export default Priority; | ||
//# sourceMappingURL=Priority.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Layout priorities. | ||
* @enum {String} | ||
*/ | ||
var Priority = { | ||
REQUIRED: 1000, | ||
DEFAULTHIGH: 750, | ||
DEFAULTLOW: 250, | ||
//FITTINGSIZELEVEL: 50, | ||
}; | ||
export default Priority; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Relation types. | ||
* @enum {String} | ||
*/ | ||
declare var Relation: { | ||
/** Less than or equal */ | ||
LEQ: string; | ||
/** Equal */ | ||
EQU: string; | ||
/** Greater than or equal */ | ||
GEQ: string; | ||
}; | ||
export default Relation; | ||
//# sourceMappingURL=Relation.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Relation types. | ||
* @enum {String} | ||
*/ | ||
var Relation = { | ||
/** Less than or equal */ | ||
LEQ: 'leq', | ||
/** Equal */ | ||
EQU: 'equ', | ||
/** Greater than or equal */ | ||
GEQ: 'geq', | ||
}; | ||
export default Relation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
/** | ||
* A SubView is automatically generated when constraints are added to a View. | ||
* | ||
* @namespace SubView | ||
*/ | ||
declare class SubView { | ||
_name: any; | ||
_type: any; | ||
_solver: any; | ||
_attr: any; | ||
_intrinsicWidth: number; | ||
_intrinsicHeight: number; | ||
constructor(options: any); | ||
toJSON(): { | ||
name: any; | ||
left: any; | ||
top: any; | ||
width: any; | ||
height: any; | ||
}; | ||
toString(): void; | ||
/** | ||
* Name of the sub-view. | ||
* @readonly | ||
* @type {String} | ||
*/ | ||
get name(): any; | ||
/** | ||
* Left value (`Attribute.LEFT`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get left(): any; | ||
/** | ||
* Right value (`Attribute.RIGHT`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get right(): any; | ||
/** | ||
* Width value (`Attribute.WIDTH`). | ||
* @type {Number} | ||
*/ | ||
get width(): any; | ||
/** | ||
* Height value (`Attribute.HEIGHT`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get height(): any; | ||
/** | ||
* Intrinsic width of the sub-view. | ||
* | ||
* Use this property to explicitely set the width of the sub-view, e.g.: | ||
* ```javascript | ||
* var view = new AutoLayout.View(AutoLayout.VisualFormat.parse('|[child1][child2]|'), { | ||
* width: 500 | ||
* }); | ||
* view.subViews.child1.intrinsicWidth = 100; | ||
* console.log('child2 width: ' + view.subViews.child2.width); // 400 | ||
* ``` | ||
* | ||
* @type {Number} | ||
*/ | ||
get intrinsicWidth(): number; | ||
set intrinsicWidth(value: number); | ||
/** | ||
* Intrinsic height of the sub-view. | ||
* | ||
* See `intrinsicWidth`. | ||
* | ||
* @type {Number} | ||
*/ | ||
get intrinsicHeight(): number; | ||
set intrinsicHeight(value: number); | ||
/** | ||
* Top value (`Attribute.TOP`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get top(): any; | ||
/** | ||
* Bottom value (`Attribute.BOTTOM`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get bottom(): any; | ||
/** | ||
* Horizontal center (`Attribute.CENTERX`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get centerX(): any; | ||
/** | ||
* Vertical center (`Attribute.CENTERY`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get centerY(): any; | ||
/** | ||
* Z-index (`Attribute.ZINDEX`). | ||
* @readonly | ||
* @type {Number} | ||
*/ | ||
get zIndex(): any; | ||
/** | ||
* Returns the type of the sub-view. | ||
* @readonly | ||
* @type {String} | ||
*/ | ||
get type(): any; | ||
/** | ||
* Gets the value of one of the attributes. | ||
* | ||
* @param {String|Attribute} attr Attribute name (e.g. 'right', 'centerY', Attribute.TOP). | ||
* @return {Number} value or `undefined` | ||
*/ | ||
getValue(attr: any): any; | ||
/** | ||
* @private | ||
*/ | ||
_getAttr(attr: any): any; | ||
/** | ||
* @private | ||
*/ | ||
_getAttrValue(attr: any): any; | ||
} | ||
export default SubView; | ||
//# sourceMappingURL=SubView.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.