iOS:add FlexLayoutNode
This commit is contained in:
21
doric-web/dist/index.js
vendored
21
doric-web/dist/index.js
vendored
@@ -1809,7 +1809,6 @@ class View {
|
||||
getLocationOnScreen(context) {
|
||||
return this.nativeChannel(context, "getLocationOnScreen")();
|
||||
}
|
||||
/**----------transform----------*/
|
||||
doAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "doAnimation")(animation.toModel()).then((args) => {
|
||||
for (let key in args) {
|
||||
@@ -1899,6 +1898,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Number)
|
||||
], View.prototype, "rotation", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Object)
|
||||
], View.prototype, "flexConfig", void 0);
|
||||
class Superview extends View {
|
||||
subviewById(id) {
|
||||
for (let v of this.allSubviews()) {
|
||||
@@ -2164,6 +2167,20 @@ function vlayout(views, config) {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
class FlexLayout extends Group {
|
||||
}
|
||||
function flexlayout(views, config) {
|
||||
const ret = new FlexLayout;
|
||||
for (let v of views) {
|
||||
ret.addChild(v);
|
||||
}
|
||||
if (config) {
|
||||
for (let key in config) {
|
||||
Reflect.set(ret, key, Reflect.get(config, key, config), ret);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
@@ -3930,6 +3947,7 @@ exports.CENTER_X = CENTER_X;
|
||||
exports.CENTER_Y = CENTER_Y;
|
||||
exports.Color = Color;
|
||||
exports.Draggable = Draggable;
|
||||
exports.FlexLayout = FlexLayout;
|
||||
exports.FlowLayout = FlowLayout;
|
||||
exports.FlowLayoutItem = FlowLayoutItem;
|
||||
exports.Gravity = Gravity;
|
||||
@@ -3970,6 +3988,7 @@ exports.ViewModel = ViewModel;
|
||||
exports.animate = animate;
|
||||
exports.coordinator = coordinator;
|
||||
exports.draggable = draggable;
|
||||
exports.flexlayout = flexlayout;
|
||||
exports.flowItem = flowItem;
|
||||
exports.flowlayout = flowlayout;
|
||||
exports.gravity = gravity;
|
||||
|
6
doric-web/dist/index.js.map
vendored
6
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user