@breakside/jskit 2021.37.0 → 2021.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/JS/JSColor+HTML.js +11 -2
- package/Frameworks/Foundation.jsframework/JS/JSColor.js +62 -26
- package/Frameworks/Foundation.jsframework/JS/JSColorSpace.js +209 -1
- package/Frameworks/Foundation.jsframework/JS/JSSpec.js +1 -1
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +4 -4
- package/Resources/doc-default.css +86 -0
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/JSColor+HTML.js +11 -2
- package/Root/Frameworks/Foundation/JSColor.js +62 -26
- package/Root/Frameworks/Foundation/JSColorSpace.js +209 -1
- package/Root/Frameworks/Foundation/JSSpec.js +1 -1
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/JSColor+UIKit.js +75 -0
- package/Root/Frameworks/UIKit/UIAccessibility.js +15 -0
- package/Root/Frameworks/UIKit/UIActivityIndicatorView.js +2 -1
- package/Root/Frameworks/UIKit/UIAlertController.js +4 -3
- package/Root/Frameworks/UIKit/UIAnimation.js +7 -13
- package/Root/Frameworks/UIKit/UIApplication.js +3 -0
- package/Root/Frameworks/UIKit/UIBasicAnimation.js +6 -0
- package/Root/Frameworks/UIKit/UIButton.js +17 -25
- package/Root/Frameworks/UIKit/UICheckbox.js +11 -22
- package/Root/Frameworks/UIKit/UIColorPanel.js +27 -15
- package/Root/Frameworks/UIKit/UIColorSpace.js +132 -0
- package/Root/Frameworks/UIKit/UIColorWell.js +18 -2
- package/Root/Frameworks/UIKit/UIHTMLDisplayServer.js +1 -5
- package/Root/Frameworks/UIKit/UIHTMLTextField.js +3 -15
- package/Root/Frameworks/UIKit/UIHTMLWindowServer.js +72 -1
- package/Root/Frameworks/UIKit/UIImageView.js +4 -0
- package/Root/Frameworks/UIKit/UIKit.js +2 -0
- package/Root/Frameworks/UIKit/UILabel.js +14 -2
- package/Root/Frameworks/UIKit/UILayer.js +29 -1
- package/Root/Frameworks/UIKit/UIListView.js +10 -9
- package/Root/Frameworks/UIKit/UIMenu.js +10 -9
- package/Root/Frameworks/UIKit/UIMenuBar.js +5 -4
- package/Root/Frameworks/UIKit/UIMenuView.js +8 -4
- package/Root/Frameworks/UIKit/UINavigationBar.js +8 -5
- package/Root/Frameworks/UIKit/UINavigationController.js +3 -2
- package/Root/Frameworks/UIKit/UIOutlineViewCell.js +2 -1
- package/Root/Frameworks/UIKit/UIPopupButton.js +13 -24
- package/Root/Frameworks/UIKit/UIPopupWindow.js +3 -2
- package/Root/Frameworks/UIKit/UIProgressIndicatorView.js +1 -1
- package/Root/Frameworks/UIKit/UIRadioGroup.js +11 -22
- package/Root/Frameworks/UIKit/UIScroller.js +4 -3
- package/Root/Frameworks/UIKit/UISegmentedControl.js +16 -15
- package/Root/Frameworks/UIKit/UISlider.js +20 -36
- package/Root/Frameworks/UIKit/UITabView.js +34 -31
- package/Root/Frameworks/UIKit/UITextEditor.js +2 -1
- package/Root/Frameworks/UIKit/UITextField.js +13 -14
- package/Root/Frameworks/UIKit/UITextLayer.js +5 -0
- package/Root/Frameworks/UIKit/UITokenField.js +3 -3
- package/Root/Frameworks/UIKit/UIToolbar.js +84 -38
- package/Root/Frameworks/UIKit/UIToolbarOverflow.svg +8 -0
- package/Root/Frameworks/UIKit/UITooltipWindow.js +5 -5
- package/Root/Frameworks/UIKit/UITraitCollection.js +21 -0
- package/Root/Frameworks/UIKit/UIUserInterface.js +6 -0
- package/Root/Frameworks/UIKit/UIWebView.js +3 -2
- package/Root/Frameworks/UIKit/UIWindow.js +18 -24
- package/Root/Frameworks/UIKit/UIWindowButtonCloseInactive.svg +1 -1
- package/Root/Frameworks/UIKit/UIWindowButtonCloseNormal.svg +1 -1
- package/Root/Frameworks/UIKit/UIWindowServer.js +53 -8
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/Root/Templates/html/${PROJECT_NAME}/www/index.html +24 -4
- package/package.json +1 -1
|
@@ -3,22 +3,22 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2021.
|
|
6
|
+
"JSBundleVersion": "2021.39.0",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "8e2a12a2f49c7be2623e2ac6d371a68b2cdfeaa5"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
17
17
|
"path": "doc-default.css",
|
|
18
18
|
"ext": ".css",
|
|
19
|
-
"byte_size":
|
|
19
|
+
"byte_size": 10928,
|
|
20
20
|
"mimetype": "text/css",
|
|
21
|
-
"hash": "
|
|
21
|
+
"hash": "d8198dd825ddbc89e00cbbbc1c575e08a101ecaa",
|
|
22
22
|
"nodeBundlePath": "Resources/doc-default.css"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -428,4 +428,90 @@ article.doc > footer > p {
|
|
|
428
428
|
article.doc > section.topics > section.topic > header > h1{
|
|
429
429
|
margin-bottom: 10px;
|
|
430
430
|
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@media (prefers-color-scheme: dark){
|
|
434
|
+
body{
|
|
435
|
+
background: rgb(38,38,38);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
article.doc{
|
|
439
|
+
color: rgb(234,234,234);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
article.doc a{
|
|
443
|
+
text-decoration: none;
|
|
444
|
+
color: rgb(160,160,220);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
article.doc a:visited{
|
|
448
|
+
color: rgb(190,190,240);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
article.doc div.code{
|
|
452
|
+
border: 1px solid rgb(26,26,26);
|
|
453
|
+
background: rgb(51,51,51);
|
|
454
|
+
color: rgb(255,255,255);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
article.doc code{
|
|
458
|
+
color: rgb(255,255,255);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
article.doc > header{
|
|
462
|
+
border-bottom: 1px solid rgb(72,72,72);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
article.doc > header > p.type{
|
|
466
|
+
color: rgb(128,128,128);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
article.doc > aside.availability > div.versions{
|
|
470
|
+
color: rgb(128,128,128);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
article.doc > aside.availability > table.environments > tbody > tr > td.beta > div{
|
|
474
|
+
border: 1px solid rgb(180,111,51);
|
|
475
|
+
color: rgb(180,111,51);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
article.doc > aside.availability > table.environments > tbody > tr > td.available > div{
|
|
479
|
+
border: 1px solid rgb(64,255,128);
|
|
480
|
+
color: rgb(64,255,128);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
article.doc > aside.availability > table.environments > tbody > tr > td.unavailable > div{
|
|
484
|
+
border: 1px solid rgb(224,224,224);
|
|
485
|
+
color: rgb(224,224,224);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
article.doc > aside.availability > table.environments > tbody > tr > td.deprecated > div{
|
|
489
|
+
border: 1px solid rgb(204,102,0);
|
|
490
|
+
color: rgb(204,102,0);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
article.doc > section.parameters > dl > dt{
|
|
494
|
+
color: rgb(255,255,255);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
article.doc > section.parameters > dl > dd > dl > dt{
|
|
498
|
+
color: rgb(255,255,255);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
article.doc > section.options > dl > dt{
|
|
502
|
+
color: rgb(255,255,255);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
article.doc > section.options > dl > dd > dl > dt{
|
|
506
|
+
color: rgb(255,255,255);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
article.doc > section.return > dl.promise > dt{
|
|
510
|
+
color: rgb(255,255,255);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
article.doc > footer > p {
|
|
514
|
+
color: rgb(164,164,164);
|
|
515
|
+
}
|
|
516
|
+
|
|
431
517
|
}
|
|
@@ -19,12 +19,21 @@
|
|
|
19
19
|
JSColor.definePropertiesFromExtensions({
|
|
20
20
|
|
|
21
21
|
_cachedCSSString: null,
|
|
22
|
+
_cachedCSSNumber: -1,
|
|
22
23
|
|
|
23
24
|
cssString: function(){
|
|
24
|
-
if (this._cachedCSSString === null){
|
|
25
|
+
if (this._cachedCSSString === null || this._cachedCSSNumber !== JSColorSpace._cssCacheNumber){
|
|
25
26
|
var rgbaColor = this.rgbaColor();
|
|
26
27
|
this._cachedCSSString = 'rgba(%d, %d, %d, %f)'.sprintf(Math.round(rgbaColor.components[0] * 255), Math.round(rgbaColor.components[1] * 255), Math.round(rgbaColor.components[2] * 255), rgbaColor.components[3]);
|
|
28
|
+
this._cachedCSSNumber = JSColor._cssCacheNumber;
|
|
27
29
|
}
|
|
28
30
|
return this._cachedCSSString;
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
JSColor._cssCacheNumber = 0;
|
|
36
|
+
|
|
37
|
+
JSColor.invalidateCSSCache = function(){
|
|
38
|
+
++JSColor._cssCacheNumber;
|
|
39
|
+
};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
// #import "JSObject.js"
|
|
17
17
|
// #import "CoreTypes.js"
|
|
18
18
|
// #import "JSColorSpace.js"
|
|
19
|
+
/* global JSBundle, JSSpec */
|
|
19
20
|
'use strict';
|
|
20
21
|
|
|
21
22
|
(function(){
|
|
@@ -153,12 +154,19 @@ JSClass('JSColor', JSObject, {
|
|
|
153
154
|
},
|
|
154
155
|
|
|
155
156
|
initWithBlendedColor: function(base, otherColor, blendPercentage){
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
while (base._space instanceof JSMappedColorSpace){
|
|
158
|
+
base = base._space.colorFromComponents(base._components);
|
|
159
|
+
}
|
|
160
|
+
while (otherColor._space instanceof JSMappedColorSpace){
|
|
161
|
+
otherColor = otherColor._space.colorFromComponents(otherColor._components);
|
|
162
|
+
}
|
|
163
|
+
if (base.space !== otherColor.space || !base.space.canMixComponents){
|
|
164
|
+
base = base.rgbaColor();
|
|
165
|
+
otherColor = otherColor.rgbaColor();
|
|
166
|
+
}
|
|
167
|
+
var components = base.space.mixedComponents(base.components, otherColor.components, blendPercentage);
|
|
168
|
+
components.push(base.alpha);
|
|
169
|
+
this.initWithSpaceAndComponents(base.space, components);
|
|
162
170
|
},
|
|
163
171
|
|
|
164
172
|
initWithSpec: function(spec){
|
|
@@ -180,12 +188,38 @@ JSClass('JSColor', JSObject, {
|
|
|
180
188
|
}
|
|
181
189
|
this.initWithRGBA.apply(this, components);
|
|
182
190
|
}else if (spec.containsKey("white")){
|
|
183
|
-
|
|
191
|
+
var white = spec.valueForKey("white");
|
|
192
|
+
components = white.parseNumberArray();
|
|
193
|
+
this.initWithWhite.apply(this, components);
|
|
184
194
|
}else if (spec.containsKey("blendBase") && spec.containsKey("with") && spec.containsKey("percent")){
|
|
185
195
|
var base = spec.valueForKey("blendBase", JSColor);
|
|
186
196
|
var otherColor = spec.valueForKey("with", JSColor);
|
|
187
197
|
var blendPercentage = spec.valueForKey("percent") / 100;
|
|
188
198
|
this.initWithBlendedColor(base, otherColor, blendPercentage);
|
|
199
|
+
}else if (spec.containsKey("space")){
|
|
200
|
+
var spaceName = spec.valueForKey("space");
|
|
201
|
+
var space = JSColorSpace[spaceName];
|
|
202
|
+
if (space === undefined){
|
|
203
|
+
throw new Error("Unknown color space: %s".sprintf(spaceName));
|
|
204
|
+
}
|
|
205
|
+
components = [];
|
|
206
|
+
for (var componentName in space.componentNames){
|
|
207
|
+
if (!spec.containsKey(componentName)){
|
|
208
|
+
throw new Error("Missing component %s for color in space: %s".sprintf(componentName, spaceName));
|
|
209
|
+
}
|
|
210
|
+
components[space.componentNames[componentName]] = spec.valueForKey(componentName);
|
|
211
|
+
}
|
|
212
|
+
if (space instanceof JSMappedColorSpace){
|
|
213
|
+
components.push(1);
|
|
214
|
+
}
|
|
215
|
+
var alpha = 1;
|
|
216
|
+
if (spec.containsKey("alpha")){
|
|
217
|
+
alpha = spec.valueForKey("alpha");
|
|
218
|
+
}else if (space instanceof JSMappedColorSpace){
|
|
219
|
+
alpha = -1;
|
|
220
|
+
}
|
|
221
|
+
components.push(alpha);
|
|
222
|
+
this.initWithSpaceAndComponents(space, components);
|
|
189
223
|
}
|
|
190
224
|
},
|
|
191
225
|
|
|
@@ -196,12 +230,7 @@ JSClass('JSColor', JSObject, {
|
|
|
196
230
|
if (this._space !== other._space){
|
|
197
231
|
return false;
|
|
198
232
|
}
|
|
199
|
-
|
|
200
|
-
if (Math.round(this._components[i] * 255) != Math.round(other._components[i] * 255)){
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return true;
|
|
233
|
+
return this._space.compareComponents(this._components, other._components) && Math.round(this.alpha * 255) === Math.round(other.alpha * 255);
|
|
205
234
|
},
|
|
206
235
|
|
|
207
236
|
toString: function(){
|
|
@@ -209,21 +238,29 @@ JSClass('JSColor', JSObject, {
|
|
|
209
238
|
},
|
|
210
239
|
|
|
211
240
|
getAlpha: function(){
|
|
212
|
-
|
|
241
|
+
var alpha = this._components[this._space.numberOfComponents];
|
|
242
|
+
if (alpha < 0){
|
|
243
|
+
alpha = this._space.alphaFromComponents(this._components);
|
|
244
|
+
}
|
|
245
|
+
return alpha;
|
|
213
246
|
},
|
|
214
247
|
|
|
215
248
|
colorWithAlpha: function(alpha){
|
|
216
249
|
var components = JSCopy(this._components);
|
|
217
|
-
components[
|
|
250
|
+
components[this._space.numberOfComponents] = alpha;
|
|
218
251
|
return JSColor.initWithSpaceAndComponents(this._space, components);
|
|
219
252
|
},
|
|
220
253
|
|
|
221
254
|
colorDarkenedByPercentage: function(darkenPercentage){
|
|
222
|
-
|
|
255
|
+
var components = this._space.componentsDarkenedByPercentage(this._components, darkenPercentage);
|
|
256
|
+
components.push(this.alpha);
|
|
257
|
+
return JSColor.initWithSpaceAndComponents(this._space, components);
|
|
223
258
|
},
|
|
224
259
|
|
|
225
260
|
colorLightenedByPercentage: function(lightenPercentage){
|
|
226
|
-
|
|
261
|
+
var components = this._space.componentsLightenedByPercentage(this._components, lightenPercentage);
|
|
262
|
+
components.push(this.alpha);
|
|
263
|
+
return JSColor.initWithSpaceAndComponents(this._space, components);
|
|
227
264
|
},
|
|
228
265
|
|
|
229
266
|
colorByBlendingColor: function(otherColor, blendPercentage){
|
|
@@ -231,7 +268,6 @@ JSClass('JSColor', JSObject, {
|
|
|
231
268
|
},
|
|
232
269
|
|
|
233
270
|
rgbaColor: function(){
|
|
234
|
-
var components;
|
|
235
271
|
if (this._space === JSColorSpace.rgb){
|
|
236
272
|
return this;
|
|
237
273
|
}
|
|
@@ -241,7 +277,6 @@ JSClass('JSColor', JSObject, {
|
|
|
241
277
|
},
|
|
242
278
|
|
|
243
279
|
grayColor: function(){
|
|
244
|
-
var components;
|
|
245
280
|
if (this._space === JSColorSpace.gray){
|
|
246
281
|
return this;
|
|
247
282
|
}
|
|
@@ -268,7 +303,7 @@ JSClass('JSColor', JSObject, {
|
|
|
268
303
|
}
|
|
269
304
|
return {
|
|
270
305
|
space: this._space.name,
|
|
271
|
-
components: JSCopy(this.
|
|
306
|
+
components: JSCopy(this._components)
|
|
272
307
|
};
|
|
273
308
|
},
|
|
274
309
|
|
|
@@ -344,7 +379,7 @@ Object.defineProperties(JSColor, {
|
|
|
344
379
|
configurable: true,
|
|
345
380
|
get: function JSColor_getClearColor(){
|
|
346
381
|
var color = JSColor.initWithRGBA(0, 0, 0, 0);
|
|
347
|
-
Object.defineProperty(
|
|
382
|
+
Object.defineProperty(JSColor, 'clear', {value: color});
|
|
348
383
|
return color;
|
|
349
384
|
}
|
|
350
385
|
},
|
|
@@ -353,7 +388,7 @@ Object.defineProperties(JSColor, {
|
|
|
353
388
|
configurable: true,
|
|
354
389
|
get: function JSColor_getWhiteColor(){
|
|
355
390
|
var color = JSColor.initWithWhite(1.0);
|
|
356
|
-
Object.defineProperty(
|
|
391
|
+
Object.defineProperty(JSColor, 'white', {value: color});
|
|
357
392
|
return color;
|
|
358
393
|
}
|
|
359
394
|
},
|
|
@@ -362,7 +397,7 @@ Object.defineProperties(JSColor, {
|
|
|
362
397
|
configurable: true,
|
|
363
398
|
get: function JSColor_getBlackColor(){
|
|
364
399
|
var color = JSColor.initWithWhite(0);
|
|
365
|
-
Object.defineProperty(
|
|
400
|
+
Object.defineProperty(JSColor, 'black', {value: color});
|
|
366
401
|
return color;
|
|
367
402
|
}
|
|
368
403
|
},
|
|
@@ -371,7 +406,7 @@ Object.defineProperties(JSColor, {
|
|
|
371
406
|
configurable: true,
|
|
372
407
|
get: function JSColor_getBlackColor(){
|
|
373
408
|
var color = JSColor.initWithRGBA(1.0, 0, 0);
|
|
374
|
-
Object.defineProperty(
|
|
409
|
+
Object.defineProperty(JSColor, 'red', {value: color});
|
|
375
410
|
return color;
|
|
376
411
|
}
|
|
377
412
|
},
|
|
@@ -380,7 +415,7 @@ Object.defineProperties(JSColor, {
|
|
|
380
415
|
configurable: true,
|
|
381
416
|
get: function JSColor_getBlackColor(){
|
|
382
417
|
var color = JSColor.initWithRGBA(0, 1.0, 0);
|
|
383
|
-
Object.defineProperty(
|
|
418
|
+
Object.defineProperty(JSColor, 'green', {value: color});
|
|
384
419
|
return color;
|
|
385
420
|
}
|
|
386
421
|
},
|
|
@@ -389,13 +424,14 @@ Object.defineProperties(JSColor, {
|
|
|
389
424
|
configurable: true,
|
|
390
425
|
get: function JSColor_getBlackColor(){
|
|
391
426
|
var color = JSColor.initWithRGBA(0, 0, 1.0);
|
|
392
|
-
Object.defineProperty(
|
|
427
|
+
Object.defineProperty(JSColor, 'blue', {value: color});
|
|
393
428
|
return color;
|
|
394
429
|
}
|
|
395
430
|
},
|
|
396
431
|
|
|
397
432
|
});
|
|
398
433
|
|
|
434
|
+
|
|
399
435
|
JSColor.contentType = "x-jskit/jscolor";
|
|
400
436
|
|
|
401
437
|
})();
|