Skip to content

Commit

Permalink
Bite the bullet and commit build outputs so that they are as accessib…
Browse files Browse the repository at this point in the history
…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
trusktr committed Sep 8, 2023
1 parent 6767033 commit 3ece0ac
Show file tree
Hide file tree
Showing 31 changed files with 10,149 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
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
21 changes: 21 additions & 0 deletions es/Attribute.d.ts
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
1 change: 1 addition & 0 deletions es/Attribute.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions es/Attribute.js
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;
38 changes: 38 additions & 0 deletions es/AutoLayout.d.ts
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
1 change: 1 addition & 0 deletions es/AutoLayout.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions es/AutoLayout.js
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 };
11 changes: 11 additions & 0 deletions es/Priority.d.ts
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
1 change: 1 addition & 0 deletions es/Priority.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions es/Priority.js
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;
14 changes: 14 additions & 0 deletions es/Relation.d.ts
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
1 change: 1 addition & 0 deletions es/Relation.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions es/Relation.js
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;
129 changes: 129 additions & 0 deletions es/SubView.d.ts
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
1 change: 1 addition & 0 deletions es/SubView.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ece0ac

Please sign in to comment.