Changeset 812
- Timestamp:
- 04/28/06 13:54:37 (2 years ago)
- Files:
-
- presentations/2006/ajax_experience/slides.html (modified) (7 diffs)
- presentations/2006/ajax_experience/slides.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
presentations/2006/ajax_experience/slides.html
r811 r812 1021 1021 <li>NSColor-like API (from Cocoa)</li> 1022 1022 <li>Works in RGB, HSV, HSL</li> 1023 <li>Normalized , all components from [0.0, 1.0]</li>1023 <li>Normalized to [0, 1.0]</li> 1024 1024 </ul> 1025 1025 </div> … … 1029 1029 <li>Color.fromRGB(r, g, b, alpha=1.0)</li> 1030 1030 <li>fromHSL, fromHSV</li> 1031 <li> Will also take objects, e.g.{r: 1, g: 0, b: 0, a: 1}</li>1031 <li>Also {r: 1, g: 0, b: 0, a: 1}</li> 1032 1032 </ul> 1033 1033 </div> … … 1036 1036 <dl class="docutils"> 1037 1037 <dt>Color.fromString(str):</dt> 1038 <dd>Any valid CSS color description. "rgb(...)", "hsl(...)", "#RRGGBB", "blue"</dd> 1039 </dl> 1040 <p>Implementations in fromRGBString, fromHSLString, fromHexString, fromName.</p> 1038 <dd>Color from any valid CSS color description</dd> 1039 </dl> 1040 <ul class="simple"> 1041 <li>"rgb(...)"</li> 1042 <li>"hsl(...)"</li> 1043 <li>"#RRGGBB"</li> 1044 <li>"blue"</li> 1045 </ul> 1041 1046 </div> 1042 1047 <div class="slide" id="dom-to-color"> … … 1044 1049 <ul class="simple"> 1045 1050 <li>Color.fromBackground(node)</li> 1046 <li>Color.fromComputedStyle(node, style, css)</li> 1047 <li>Color.fromText(node)</li> 1051 <li>fromComputedStyle, fromText, ...</li> 1048 1052 </ul> 1049 1053 </div> … … 1114 1118 <h1>Network Events</h1> 1115 1119 <dl class="docutils"> 1116 <dt>doSimpleXMLHttpRequest(url [, queryArguments]):</dt>1120 <dt>doSimpleXMLHttpRequest(url):</dt> 1117 1121 <dd>Deferred from XMLHttpRequest GET</dd> 1118 <dt>loadJSONDoc(url [, queryArguments]):</dt>1122 <dt>loadJSONDoc(url):</dt> 1119 1123 <dd>Deferred from XMLHttpRequest GET then eval</dd> 1120 <dt>sendXMLHttpRequest(req, content):</dt>1124 <dt>sendXMLHttpRequest(req, data):</dt> 1121 1125 <dd>Deferred from async XMLHttpRequest</dd> 1122 1126 </dl> … … 1188 1192 <h1>Custom Event Object</h1> 1189 1193 <ul class="simple"> 1190 <li>Consistent event object , NOT the browser's.</li>1191 <li>e.type() is the event type (no "on" prefix)</li>1194 <li>Consistent event object!!</li> 1195 <li>e.type() is the event type</li> 1192 1196 <li>e.target() is the event target</li> 1193 1197 <li>e.mouse() has mouse coordinates</li> 1194 1198 <li>e.key() for keyboard state</li> 1195 1199 <li>e.modifiers() for keyboard modifiers</li> 1196 <li>e.stop() stopPropagation and preventDefault</li>1200 <li>e.stop() to stop</li> 1197 1201 </ul> 1198 1202 </div> … … 1251 1255 <li>Broadcast your own events!</li> 1252 1256 <li>connect() and disconnect() are the same</li> 1253 <li>signal(src, signal, args...) to fire the event</li>1257 <li>signal(src, signal, args...) to fire</li> 1254 1258 </ul> 1255 1259 </div> presentations/2006/ajax_experience/slides.txt
r811 r812 642 642 * NSColor-like API (from Cocoa) 643 643 * Works in RGB, HSV, HSL 644 * Normalized , all components from [0.0, 1.0]644 * Normalized to [0, 1.0] 645 645 646 646 … … 650 650 * Color.fromRGB(r, g, b, alpha=1.0) 651 651 * fromHSL, fromHSV 652 * Will also take objects, e.g.{r: 1, g: 0, b: 0, a: 1}652 * Also {r: 1, g: 0, b: 0, a: 1} 653 653 654 654 … … 657 657 658 658 Color.fromString(str): 659 Any valid CSS color description. "rgb(...)", "hsl(...)", "#RRGGBB", "blue" 660 661 Implementations in fromRGBString, fromHSLString, fromHexString, fromName. 659 Color from any valid CSS color description 660 661 - "rgb(...)" 662 - "hsl(...)" 663 - "#RRGGBB" 664 - "blue" 662 665 663 666 … … 666 669 667 670 - Color.fromBackground(node) 668 - Color.fromComputedStyle(node, style, css) 669 - Color.fromText(node) 671 - fromComputedStyle, fromText, ... 670 672 671 673 … … 741 743 ============== 742 744 743 doSimpleXMLHttpRequest(url [, queryArguments]):745 doSimpleXMLHttpRequest(url): 744 746 Deferred from XMLHttpRequest GET 745 747 746 loadJSONDoc(url [, queryArguments]):748 loadJSONDoc(url): 747 749 Deferred from XMLHttpRequest GET then eval 748 750 749 sendXMLHttpRequest(req, content):751 sendXMLHttpRequest(req, data): 750 752 Deferred from async XMLHttpRequest 751 753 … … 822 824 =================== 823 825 824 * Consistent event object , NOT the browser's.825 * e.type() is the event type (no "on" prefix)826 * Consistent event object!! 827 * e.type() is the event type 826 828 * e.target() is the event target 827 829 * e.mouse() has mouse coordinates 828 830 * e.key() for keyboard state 829 831 * e.modifiers() for keyboard modifiers 830 * e.stop() stopPropagation and preventDefault832 * e.stop() to stop 831 833 832 834 … … 861 863 * Broadcast your own events! 862 864 * connect() and disconnect() are the same 863 * signal(src, signal, args...) to fire the event865 * signal(src, signal, args...) to fire 864 866 865 867
