This repository has been archived by the owner on Mar 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
about.html
86 lines (79 loc) · 6.02 KB
/
about.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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PhosphorJS: About</title>
<meta name="description" content="PhosphorJS">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="icon" href="favicon.ico">
<link href='https://fonts.googleapis.com/css?family=Lato:400italic,300,300italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Nunito:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
<![endif]-->
</head>
<body>
<div class="header-container">
<header class="wrapper clearfix">
<a href="index.html">
<div class="logo"></div>
<h1 class="title">PhosphorJS</h1>
</a>
<nav>
<ul>
<li><a href="https://github.com/phosphorjs/phosphor">GitHub</a></li>
<li><a href="index.html">Docs</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
</div>
<div class="main-container">
<div class="main wrapper clearfix">
<article>
<h1>The PhosphorJS Project</h1>
<h2 id="what-">What?</h2>
<p>The PhosphorJS libraries cover topics including (but not limited to): message passing, signaling, attached properties, data structures, widgets, and layouts. Each of the libraries is a separately installable NPM package. Developers are free to use as much or as little of PhosphorJS as suits their needs.</p>
<p>Most users will be drawn to PhosphorJS for its high performance layouts and well structured widget hierarchy. These features allow a developer to build desktop-like experiences which are not possible using CSS alone, and which are not within the purview of most of today's web frameworks.</p>
<h2 id="why-">Why?</h2>
<p>HTML and CSS were designed for documents, not applications. There are certain classes of user interactions which are expected of production-quality desktop applications which are impossible to implement in CSS alone. Think of tabbed and docked panels in an IDE application. These types of interactions must be implemented using JavaScript, and implementing them in a scalable and elegant fashion requires a reasonable amount of architecture. This includes facilities such as: a message-passing hierarchy, resize/attach/detach/show/hide events, size constraint aggregation, and efficient layout computation. PhosphorJS provides these low-level facilities that are currently missing from the web, in a way which is flexible, unopinionated, and compatible with existing code.</p>
<h2 id="how-">How?</h2>
<ul>
<li>PhosphorJS provides a simple and flexible Widget class which establishes a hierarchy for message passing and DOM node manipulation. This enables the propagation of various messages throughout the hierarchy, such as: resize, attach, detach, show, and hide (among many others).
</li>
<li>Once establishing resize messages which propagate reliably, it becomes possible to implement layouts in JavaScript which would be impossible to achieve with CSS alone. By explicitly specifying the position and size of a node in absolute terms, the browser is able to optimize reflows so that they are contained within the affected portion of the page. This means that changes to one part of the application do not incur the cost of a reflow of the entire page.
</li>
<li>PhosphorJS recognizes that CSS is good at lots of things, and does not prevent the developer from using it when appropriate. PhosphorJS layouts play nicely with standard CSS layouts, and the two can be freely mixed within a widget hierarchy.
</li>
<li>PhosphorJS recognizes that developers have favorite frameworks that are well suited to a particular task. A Phosphor Widget instance can play host to DOM content generated by any other framework, and such a widget can be freely embedded within any Phosphor widget hierarchy.
</li>
<li>PhosphorJS provides a host of predefined widgets and layouts which are hard to implement correctly and efficiently, such as: menus and menu bars, split panels, and tabbed and docked panels. These make it simple to create the rich desktop-style applications described previously.
</li>
</ul>
<h2 id="can-i-use-it-now-">Can I use it now?</h2>
<p>Yes! All of the libraries listed on the <a href="docs.html">documentation page</a> have reached 1.0.</p>
</article>
<aside>
<div class="logo"></div>
<h2>PhosphorJS</h2>
<p>a collection of libraries <br>
designed to make it easy<br>
to build high-performance,<br>
pluggable, desktop-style <br>
web applications</p>
</aside>
</div> <!-- #main -->
</div> <!-- #main-container -->
<!-- <div class="footer-container">
<footer class="wrapper">
<h3>footer</h3>
</footer>
</div> -->
<script src="js/main.js"></script>
</body>
</html>