-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.html
130 lines (117 loc) · 3.76 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<html>
<head>
<title> Selection </title>
<style>
/*
ul {list-style: none}
li.collapsed {display: none; background-image: url(plus.gif)}
li:before {content: url(minus.gif); width: 9px height: 9px; margin-right: 10px;}
li.collapsed:before {content: url(plus.gif);}
*/
</style>
<script>
var api = {};
var builtins = {};
for (var i in window) {
try {
builtins[i] = window[i];
} catch(x) {
}
}
</script>
<!--
helpers: mixin, clone, others.
-->
<script src="lang_util.js" ></script>
<script src="canvas_lib.js" ></script>
<!--
createElement, element.style
-->
<script src="css/box_basic.js" ></script>
<script src="css/box_model.js" ></script>
<script src="css/css_style.js" ></script>
<script src="css/box_paint.js" ></script>
<script src="css/scrollbar.js" ></script>
<script src="css/viewport.js" ></script>
<script src="css/line_basic.js" ></script>
<script src="css/text_wrap.js" ></script>
<script src="css/line_model.js" ></script>
<script src="css/line_paint.js" ></script>
<!-- // css3-content is insanely cool
// css/content_model.js [ this is the goal ]
-->
<!-- overflow: scroll; overflow-style: move; overflow-y: hidden; -->
<script src="css/overflow.js" ></script>
<!--
DOM API
-->
<script src="html/dom_core.js" ></script>
<script src="html/dom_html_basic.js" ></script>
<script src="html/dom_html_option.js" ></script>
<script src="html/dom_html_select.js" ></script>
<!-- document.createElement -->
<script src="html/dom_html_doc.js" ></script>
<!--
HTML Painters and Event Listeners
-->
<script src="html/control_factory.js" ></script>
<script src="html/select_control.js" ></script>
<script src="html/combobox_control.js" ></script>
<script src="html/image_control.js" ></script>
<script src="html/button_control.js" ></script>
<script src="html/slider_control.js" ></script>
<script src="svg/dom_svg_rect.js" ></script>
<!-- text -->
<script src="html/textbox/factory.js" ></script>
<script src="html/textbox/basic_model.js" ></script>
<!-- css3-ui module has removed ::selection recently, css3-selectors has as well -->
<!-- strongly related: Range, Selection -->
<script src="html/textbox/cursor.js" ></script>
<script src="html/textbox/selection.js" ></script>
<!-- ui-events -->
<script src="html/textbox/keyboard.js" ></script>
<script src="html/textbox/mouse.js" ></script>
<!-- css3-content: move-to -->
<script src="html/textbox/keyboard_edit.js" ></script>
<!-- css3-ui: keyboard -->
<script src="html/textbox/keyboard_nav.js" ></script>
<!-- textarea / clipboard -->
<script src="html/textbox/textbox_comp.js" ></script>
<script src="html/textbox/textmodel_copypaste.js" ></script>
<script src="html/textbox/textmodel.js" ></script>
</head>
<body>
<script>
for (var i in window) {
try {
if (builtins[i] !== window[i]) {
api[i] = window[i];
}
} catch(x) {
}
}
reflect(api, "");
function reflect(ref, refName) {
if (!ref || ref.IS_DONE) return;
ref.IS_DONE = true;
document.write('<ul>');
for (var name in ref) {
if (name != "reflect" && name != "IS_DONE" && name != "tags" && name != "_firebug" && name != "body" && name != "prototype" && name != "constructor" && !/^CanvasRenderingContext2D/.test(name)) {
var object = ref[name];
var type = typeof object;
if (type == "function" && /^[A-Z]/.test(name)) {
type = "constructor";
}
var fullName = name;
if (refName) fullName = refName + "." + name;
document.write('<li class="' + (ref == api ? "" : "collapsed") + '"><i>' + type + "</i>: <b>" + fullName + "</b>");
if (type == "object") if (object && !object.nodeType) reflect(object, fullName);
else if (type == "constructor") reflect(object.prototype, fullName);
document.write("</li>");
}
}
document.write("</ul>");
}
</script>
</body>
</html>