Passed
Push — master ( 31e3b7...3c51f7 )
by Felipe Catão do
01:12
created

Lavine.d.ts   A

Complexity

Total Complexity 19
Complexity/F 1

Size

Lines of Code 26
Function Count 19

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 19
mnd 0
bc 0
fnc 19
bpm 0
cpm 1
noi 0

11 Functions

Rating   Name   Duplication   Size   Complexity  
A Render.addStyle 0 1 1
A Render.createHtml 0 1 1
A Render.changeContent 0 1 1
A Render.newElement 0 8 1
A Render.clearPage 0 1 1
A Render.removeElement 0 1 1
A Render.registerDinamicPage 0 1 1
A Render.setAtribute 0 1 1
A Components.addListener 0 1 1
A Components.createComponent 0 1 1
A Components.renderComponent 0 1 1
1
//Write this document for import for all functions of Lavine.js//
2
3
//render Lavine module
4
export class Render{
5
    /**
6
     * Create one new Element for your page,insert one Id.
7
     * @param {string} renderElement name of tag Html what your want add to page.
8
     * @param {string} content Content for your new element.
9
     * @param {string} selectObject Target object of your add the new element.
10
     * @param {string} Id Id target for ypur new element.
11
     */
12
    newElement(renderElement:any,content:any,selectObject:any,classList:any,Id:any):void
13
    createHtml(elementTarget:any,content:any):void
14
    changeContent(id:any,content:any):void
15
    removeElement(element:any):void
16
    setAtribute(elementId:any,atribute:any,value:any):void
17
    addStyle(elementId:any,ruleCss:any):void
18
    registerDinamicPage(pageId:any):void
19
    clearPage():void
20
}
21
22
export class Components{
23
    createComponent(componentName:any,content:any):void
24
    renderComponent(targetRender:any,componentName:any):void
25
    addListener(targetElement:any,type:any,functionCall:any):void
26
}