Implemented Corporation Research Tree UI using Treant library

This commit is contained in:
danielyxie
2018-12-15 15:31:21 -08:00
parent 648db25cbd
commit 3c7432b8a3
22 changed files with 4899 additions and 2050 deletions
+4
View File
@@ -53,6 +53,7 @@ interface ICreateElementStyleOptions {
margin?: string;
marginLeft?: string;
marginTop?: string;
overflow?: string;
padding?: string;
position?: string;
visibility?: string;
@@ -202,6 +203,9 @@ function setElementStyle(el: HTMLElement, params: ICreateElementStyleOptions) {
if (params.position !== undefined) {
el.style.position = params.position;
}
if (params.overflow !== undefined) {
el.style.overflow = params.overflow;
}
}
function setElementTooltip(el: HTMLElement, params: ICreateElementTooltipOptions) {