feature:add coordinatorPlugin and Android part

This commit is contained in:
pengfei.zhou
2020-02-13 20:26:58 +08:00
committed by osborn
parent 5b0e4959e1
commit 630ec51504
13 changed files with 490 additions and 4 deletions

25
doric-js/index.d.ts vendored
View File

@@ -90,6 +90,7 @@ declare module 'doric/lib/src/native/index.native' {
export * from 'doric/lib/src/native/animate';
export * from 'doric/lib/src/native/notification';
export * from 'doric/lib/src/native/statusbar';
export * from 'doric/lib/src/native/coordinator';
}
declare module 'doric/lib/src/util/index.util' {
@@ -856,6 +857,30 @@ declare module 'doric/lib/src/native/statusbar' {
};
}
declare module 'doric/lib/src/native/coordinator' {
import { BridgeContext } from "doric/lib/src/runtime/global";
import { Scroller } from "doric/lib/src/widget/scroller";
import { List } from "doric/lib/src/widget/list";
import { FlowLayout } from "doric/lib/src/widget/flowlayout";
import { View } from "doric/lib/src/ui/view";
import { Color } from "doric/lib/src/util/color";
export function coordinator(context: BridgeContext): {
verticalScrolling: (argument: {
scrollable: List | Scroller | FlowLayout;
scrollRange: {
start: number;
end: number;
};
target: View | "NavBar";
changing: {
name: "width" | "height" | "x" | "y" | "backgroundColor";
start: number | Color;
end: number | Color;
};
}) => Promise<any>;
};
}
declare module 'doric/lib/src/util/color' {
import { Modeling } from "doric/lib/src/util/types";
/**