@shortfuse/materialdesignweb 0.7.6 → 0.8.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.
Files changed (114) hide show
  1. package/README.md +57 -68
  2. package/components/Badge.js +2 -2
  3. package/components/BottomAppBar.js +3 -5
  4. package/components/Box.js +33 -3
  5. package/components/Button.js +48 -21
  6. package/components/Button.md +9 -9
  7. package/components/Card.js +9 -16
  8. package/components/Checkbox.js +45 -36
  9. package/components/CheckboxIcon.js +2 -2
  10. package/components/Chip.js +1 -1
  11. package/components/Dialog.js +228 -359
  12. package/components/DialogActions.js +2 -2
  13. package/components/Divider.js +3 -3
  14. package/components/ExtendedFab.js +4 -8
  15. package/components/Fab.js +1 -2
  16. package/components/FilterChip.js +4 -4
  17. package/components/Headline.js +1 -1
  18. package/components/Icon.js +8 -8
  19. package/components/IconButton.js +9 -14
  20. package/components/Input.js +273 -1
  21. package/components/Layout.js +485 -16
  22. package/components/List.js +6 -4
  23. package/components/ListItem.js +12 -12
  24. package/components/ListOption.js +21 -5
  25. package/components/Listbox.js +239 -0
  26. package/components/Menu.js +77 -526
  27. package/components/MenuItem.js +12 -14
  28. package/components/Nav.js +0 -2
  29. package/components/NavBar.js +8 -79
  30. package/components/NavDrawer.js +12 -11
  31. package/components/NavDrawerItem.js +2 -1
  32. package/components/NavItem.js +18 -8
  33. package/components/NavRail.js +15 -7
  34. package/components/NavRailItem.js +3 -1
  35. package/components/Popup.js +20 -0
  36. package/components/Progress.js +24 -23
  37. package/components/Radio.js +42 -35
  38. package/components/RadioIcon.js +3 -3
  39. package/components/Ripple.js +2 -3
  40. package/components/Search.js +85 -0
  41. package/components/SegmentedButton.js +1 -10
  42. package/components/SegmentedButtonGroup.js +16 -10
  43. package/components/Select.js +4 -4
  44. package/components/Shape.js +1 -1
  45. package/components/Slider.js +43 -50
  46. package/components/Snackbar.js +4 -5
  47. package/components/Surface.js +3 -3
  48. package/components/Switch.js +55 -21
  49. package/components/SwitchIcon.js +10 -8
  50. package/components/Tab.js +11 -9
  51. package/components/TabContent.js +4 -3
  52. package/components/TabList.js +2 -2
  53. package/components/TabPanel.js +11 -8
  54. package/components/TextArea.js +38 -35
  55. package/components/Tooltip.js +2 -2
  56. package/components/TopAppBar.js +65 -147
  57. package/core/Composition.js +985 -628
  58. package/core/CompositionAdapter.js +315 -0
  59. package/core/CustomElement.js +153 -90
  60. package/core/DomAdapter.js +586 -0
  61. package/core/ICustomElement.d.ts +2 -2
  62. package/core/css.js +8 -7
  63. package/core/customTypes.js +53 -31
  64. package/{utils → core}/jsonMergePatch.js +36 -14
  65. package/core/observe.js +111 -57
  66. package/core/optimizations.js +23 -0
  67. package/core/template.js +17 -11
  68. package/core/test.js +126 -0
  69. package/core/typings.d.ts +11 -5
  70. package/core/uid.js +13 -0
  71. package/dist/index.min.js +83 -152
  72. package/dist/index.min.js.map +4 -4
  73. package/dist/meta.json +1 -1
  74. package/mixins/AriaReflectorMixin.js +1 -2
  75. package/mixins/AriaToolbarMixin.js +2 -3
  76. package/mixins/ControlMixin.js +25 -17
  77. package/mixins/DensityMixin.js +0 -1
  78. package/mixins/FlexableMixin.js +1 -2
  79. package/mixins/FormAssociatedMixin.js +13 -10
  80. package/mixins/InputMixin.js +2 -9
  81. package/mixins/KeyboardNavMixin.js +14 -1
  82. package/mixins/PopupMixin.js +757 -0
  83. package/mixins/RTLObserverMixin.js +0 -1
  84. package/mixins/ResizeObserverMixin.js +0 -1
  85. package/mixins/RippleMixin.js +3 -4
  86. package/mixins/ScrollListenerMixin.js +41 -32
  87. package/mixins/SemiStickyMixin.js +151 -0
  88. package/mixins/ShapeMixin.js +29 -24
  89. package/mixins/StateMixin.js +11 -6
  90. package/mixins/SurfaceMixin.js +3 -57
  91. package/mixins/TextFieldMixin.js +57 -65
  92. package/mixins/ThemableMixin.js +78 -156
  93. package/mixins/TooltipTriggerMixin.js +7 -13
  94. package/mixins/TouchTargetMixin.js +4 -3
  95. package/package.json +9 -5
  96. package/theming/index.js +1 -1
  97. package/theming/themableMixinLoader.js +12 -0
  98. package/utils/{hct → material-color}/blend.js +8 -10
  99. package/utils/{hct → material-color/hct}/Cam16.js +196 -69
  100. package/utils/{hct → material-color/hct}/Hct.js +61 -19
  101. package/utils/{hct → material-color/hct}/ViewingConditions.js +3 -3
  102. package/utils/{hct → material-color/hct}/hctSolver.js +9 -16
  103. package/utils/{hct → material-color}/helper.js +11 -18
  104. package/utils/{hct → material-color/palettes}/CorePalette.js +79 -19
  105. package/utils/{hct → material-color/palettes}/TonalPalette.js +12 -4
  106. package/utils/material-color/scheme/Scheme.js +376 -0
  107. package/utils/{hct/colorUtils.js → material-color/utils/color.js} +61 -1
  108. package/utils/popup.js +46 -25
  109. package/components/ListSelect.js +0 -220
  110. package/components/Option.js +0 -91
  111. package/components/Pane.js +0 -281
  112. package/core/identify.js +0 -40
  113. package/utils/hct/Scheme.js +0 -587
  114. /package/utils/{hct/mathUtils.js → material-color/utils/math.js} +0 -0
package/core/identify.js DELETED
@@ -1,40 +0,0 @@
1
- const PREFIX = '_mdw-';
2
-
3
- /** @type {Set<string>} */
4
- const generatedUIDs = new Set();
5
-
6
- /** @return {string} */
7
- export function generateUID() {
8
- const id = Math.random().toString(36).slice(2, 10);
9
- if (generatedUIDs.has(id)) {
10
- return generateUID();
11
- }
12
- generatedUIDs.add(id);
13
- return id;
14
- }
15
-
16
- /**
17
- * @param {Element} element
18
- * @param {boolean} [mutate=false]
19
- * @return {string}
20
- */
21
- export function identifierFromElement(element, mutate) {
22
- if (element.id) {
23
- return element.id;
24
- }
25
- if (!mutate) {
26
- return null;
27
- }
28
- const id = PREFIX + generateUID();
29
- element.id = id;
30
- return id;
31
- }
32
-
33
- /**
34
- * @param {string} identifier
35
- * @param {Element} element
36
- * @return {boolean}
37
- */
38
- export function identifierMatchesElement(identifier, element) {
39
- return element.id === identifier;
40
- }
@@ -1,587 +0,0 @@
1
- /*
2
- * Copyright 2021 Google LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import CorePalette from './CorePalette.js';
18
-
19
- /** Represents a Material color scheme, a mapping of color roles to colors. */
20
- export default class Scheme {
21
- /**
22
- * @param {number} [primary]
23
- * @param {number} [onPrimary]
24
- * @param {number} [primaryContainer]
25
- * @param {number} [onPrimaryContainer]
26
- * @param {number} [secondary]
27
- * @param {number} [onSecondary]
28
- * @param {number} [secondaryContainer]
29
- * @param {number} [onSecondaryContainer]
30
- * @param {number} [tertiary]
31
- * @param {number} [onTertiary]
32
- * @param {number} [tertiaryContainer]
33
- * @param {number} [onTertiaryContainer]
34
- * @param {number} [error]
35
- * @param {number} [onError]
36
- * @param {number} [errorContainer]
37
- * @param {number} [onErrorContainer]
38
- * @param {number} [background]
39
- * @param {number} [onBackground]
40
- * @param {number} [surface]
41
- * @param {number} [onSurface]
42
- * @param {number} [surfaceVariant]
43
- * @param {number} [onSurfaceVariant]
44
- * @param {number} [outline]
45
- * @param {number} [outlineVariant]
46
- * @param {number} [shadow]
47
- * @param {number} [scrim]
48
- * @param {number} [inverseSurface]
49
- * @param {number} [inverseOnSurface]
50
- * @param {number} [inversePrimary]
51
- */
52
- constructor(
53
- primary,
54
- onPrimary,
55
- primaryContainer,
56
- onPrimaryContainer,
57
- secondary,
58
- onSecondary,
59
- secondaryContainer,
60
- onSecondaryContainer,
61
- tertiary,
62
- onTertiary,
63
- tertiaryContainer,
64
- onTertiaryContainer,
65
- error,
66
- onError,
67
- errorContainer,
68
- onErrorContainer,
69
- background,
70
- onBackground,
71
- surface,
72
- onSurface,
73
- surfaceVariant,
74
- onSurfaceVariant,
75
- outline,
76
- outlineVariant,
77
- shadow,
78
- scrim,
79
- inverseSurface,
80
- inverseOnSurface,
81
- inversePrimary,
82
- ) {
83
- this.primary = primary;
84
- this.onPrimary = onPrimary;
85
- this.primaryContainer = primaryContainer;
86
- this.onPrimaryContainer = onPrimaryContainer;
87
- this.secondary = secondary;
88
- this.onSecondary = onSecondary;
89
- this.secondaryContainer = secondaryContainer;
90
- this.onSecondaryContainer = onSecondaryContainer;
91
- this.tertiary = tertiary;
92
- this.onTertiary = onTertiary;
93
- this.tertiaryContainer = tertiaryContainer;
94
- this.onTertiaryContainer = onTertiaryContainer;
95
- this.error = error;
96
- this.onError = onError;
97
- this.errorContainer = errorContainer;
98
- this.onErrorContainer = onErrorContainer;
99
- this.background = background;
100
- this.onBackground = onBackground;
101
- this.surface = surface;
102
- this.onSurface = onSurface;
103
- this.surfaceVariant = surfaceVariant;
104
- this.onSurfaceVariant = onSurfaceVariant;
105
- this.outline = outline;
106
- this.outlineVariant = outlineVariant;
107
- this.shadow = shadow;
108
- this.scrim = scrim;
109
- this.inverseSurface = inverseSurface;
110
- this.inverseOnSurface = inverseOnSurface;
111
- this.inversePrimary = inversePrimary;
112
- }
113
-
114
- /**
115
- * @param {number} argb
116
- * @return {Scheme}
117
- */
118
- static light(argb) {
119
- return Scheme.#lightFromCorePalette(CorePalette.of(argb));
120
- }
121
-
122
- /**
123
- * @param {number} argb
124
- * @return {Scheme}
125
- */
126
- static dark(argb) {
127
- return Scheme.#darkFromCorePalette(CorePalette.of(argb));
128
- }
129
-
130
- /**
131
- * @param {number} argb
132
- * @return {Scheme}
133
- */
134
- static lightContent(argb) {
135
- return Scheme.#lightFromCorePalette(CorePalette.contentOf(argb));
136
- }
137
-
138
- /**
139
- * @param {number} argb
140
- * @return {Scheme}
141
- */
142
- static darkContent(argb) {
143
- return Scheme.#darkFromCorePalette(CorePalette.contentOf(argb));
144
- }
145
-
146
- /**
147
- * Light scheme from core palette
148
- * @param {CorePalette} core
149
- * @return {Scheme}
150
- */
151
- static #lightFromCorePalette(core) {
152
- return new Scheme()
153
- .withPrimary(core.a1.tone(40))
154
- .withOnPrimary(core.a1.tone(100))
155
- .withPrimaryContainer(core.a1.tone(90))
156
- .withOnPrimaryContainer(core.a1.tone(10))
157
- .withSecondary(core.a2.tone(40))
158
- .withOnSecondary(core.a2.tone(100))
159
- .withSecondaryContainer(core.a2.tone(90))
160
- .withOnSecondaryContainer(core.a2.tone(10))
161
- .withTertiary(core.a3.tone(40))
162
- .withOnTertiary(core.a3.tone(100))
163
- .withTertiaryContainer(core.a3.tone(90))
164
- .withOnTertiaryContainer(core.a3.tone(10))
165
- .withError(core.error.tone(40))
166
- .withOnError(core.error.tone(100))
167
- .withErrorContainer(core.error.tone(90))
168
- .withOnErrorContainer(core.error.tone(10))
169
- .withBackground(core.n1.tone(99))
170
- .withOnBackground(core.n1.tone(10))
171
- .withSurface(core.n1.tone(99))
172
- .withOnSurface(core.n1.tone(10))
173
- .withSurfaceVariant(core.n2.tone(90))
174
- .withOnSurfaceVariant(core.n2.tone(30))
175
- .withOutline(core.n2.tone(50))
176
- .withOutlineVariant(core.n2.tone(80))
177
- .withShadow(core.n1.tone(0))
178
- .withScrim(core.n1.tone(0))
179
- .withInverseSurface(core.n1.tone(20))
180
- .withInverseOnSurface(core.n1.tone(95))
181
- .withInversePrimary(core.a1.tone(80));
182
- }
183
-
184
- /**
185
- * Dark scheme from core palette
186
- * @param {CorePalette} core
187
- * @return {Scheme}
188
- */
189
- static #darkFromCorePalette(core) {
190
- return new Scheme()
191
- .withPrimary(core.a1.tone(80))
192
- .withOnPrimary(core.a1.tone(20))
193
- .withPrimaryContainer(core.a1.tone(30))
194
- .withOnPrimaryContainer(core.a1.tone(90))
195
- .withSecondary(core.a2.tone(80))
196
- .withOnSecondary(core.a2.tone(20))
197
- .withSecondaryContainer(core.a2.tone(30))
198
- .withOnSecondaryContainer(core.a2.tone(90))
199
- .withTertiary(core.a3.tone(80))
200
- .withOnTertiary(core.a3.tone(20))
201
- .withTertiaryContainer(core.a3.tone(30))
202
- .withOnTertiaryContainer(core.a3.tone(90))
203
- .withError(core.error.tone(80))
204
- .withOnError(core.error.tone(20))
205
- .withErrorContainer(core.error.tone(30))
206
- .withOnErrorContainer(core.error.tone(90))
207
- .withBackground(core.n1.tone(10))
208
- .withOnBackground(core.n1.tone(90))
209
- .withSurface(core.n1.tone(10))
210
- .withOnSurface(core.n1.tone(90))
211
- .withSurfaceVariant(core.n2.tone(30))
212
- .withOnSurfaceVariant(core.n2.tone(80))
213
- .withOutline(core.n2.tone(60))
214
- .withOutlineVariant(core.n2.tone(30))
215
- .withShadow(core.n1.tone(0))
216
- .withScrim(core.n1.tone(0))
217
- .withInverseSurface(core.n1.tone(90))
218
- .withInverseOnSurface(core.n1.tone(20))
219
- .withInversePrimary(core.a1.tone(40));
220
- }
221
-
222
- /**
223
- * @param {number} primary
224
- * @return {this}
225
- */
226
- withPrimary(primary) {
227
- this.primary = primary;
228
- return this;
229
- }
230
-
231
- /**
232
- * @param {number} onPrimary
233
- * @return {this}
234
- */
235
- withOnPrimary(onPrimary) {
236
- this.onPrimary = onPrimary;
237
- return this;
238
- }
239
-
240
- /**
241
- * @param {number} primaryContainer
242
- * @return {this}
243
- */
244
- withPrimaryContainer(primaryContainer) {
245
- this.primaryContainer = primaryContainer;
246
- return this;
247
- }
248
-
249
- /**
250
- * @param {number} onPrimaryContainer
251
- * @return {this}
252
- */
253
- withOnPrimaryContainer(onPrimaryContainer) {
254
- this.onPrimaryContainer = onPrimaryContainer;
255
- return this;
256
- }
257
-
258
- /**
259
- * @param {number} secondary
260
- * @return {this}
261
- */
262
- withSecondary(secondary) {
263
- this.secondary = secondary;
264
- return this;
265
- }
266
-
267
- /**
268
- * @param {number} onSecondary
269
- * @return {this}
270
- */
271
- withOnSecondary(onSecondary) {
272
- this.onSecondary = onSecondary;
273
- return this;
274
- }
275
-
276
- /**
277
- * @param {number} secondaryContainer
278
- * @return {this}
279
- */
280
- withSecondaryContainer(secondaryContainer) {
281
- this.secondaryContainer = secondaryContainer;
282
- return this;
283
- }
284
-
285
- /**
286
- * @param {number} onSecondaryContainer
287
- * @return {this}
288
- */
289
- withOnSecondaryContainer(onSecondaryContainer) {
290
- this.onSecondaryContainer = onSecondaryContainer;
291
- return this;
292
- }
293
-
294
- /**
295
- * @param {number} tertiary
296
- * @return {this}
297
- */
298
- withTertiary(tertiary) {
299
- this.tertiary = tertiary;
300
- return this;
301
- }
302
-
303
- /**
304
- * @param {number} onTertiary
305
- * @return {this}
306
- */
307
- withOnTertiary(onTertiary) {
308
- this.onTertiary = onTertiary;
309
- return this;
310
- }
311
-
312
- /**
313
- * @param {number} tertiaryContainer
314
- * @return {this}
315
- */
316
- withTertiaryContainer(tertiaryContainer) {
317
- this.tertiaryContainer = tertiaryContainer;
318
- return this;
319
- }
320
-
321
- /**
322
- * @param {number} onTertiaryContainer
323
- * @return {this}
324
- */
325
- withOnTertiaryContainer(onTertiaryContainer) {
326
- this.onTertiaryContainer = onTertiaryContainer;
327
- return this;
328
- }
329
-
330
- /**
331
- * @param {number} error
332
- * @return {this}
333
- */
334
- withError(error) {
335
- this.error = error;
336
- return this;
337
- }
338
-
339
- /**
340
- * @param {number} onError
341
- * @return {this}
342
- */
343
- withOnError(onError) {
344
- this.onError = onError;
345
- return this;
346
- }
347
-
348
- /**
349
- * @param {number} errorContainer
350
- * @return {this}
351
- */
352
- withErrorContainer(errorContainer) {
353
- this.errorContainer = errorContainer;
354
- return this;
355
- }
356
-
357
- /**
358
- * @param {number} onErrorContainer
359
- * @return {this}
360
- */
361
- withOnErrorContainer(onErrorContainer) {
362
- this.onErrorContainer = onErrorContainer;
363
- return this;
364
- }
365
-
366
- /**
367
- * @param {number} background
368
- * @return {this}
369
- */
370
- withBackground(background) {
371
- this.background = background;
372
- return this;
373
- }
374
-
375
- /**
376
- * @param {number} onBackground
377
- * @return {this}
378
- */
379
- withOnBackground(onBackground) {
380
- this.onBackground = onBackground;
381
- return this;
382
- }
383
-
384
- /**
385
- * @param {number} surface
386
- * @return {this}
387
- */
388
- withSurface(surface) {
389
- this.surface = surface;
390
- return this;
391
- }
392
-
393
- /**
394
- * @param {number} onSurface
395
- * @return {this}
396
- */
397
- withOnSurface(onSurface) {
398
- this.onSurface = onSurface;
399
- return this;
400
- }
401
-
402
- /**
403
- * @param {number} surfaceVariant
404
- * @return {this}
405
- */
406
- withSurfaceVariant(surfaceVariant) {
407
- this.surfaceVariant = surfaceVariant;
408
- return this;
409
- }
410
-
411
- /**
412
- * @param {number} onSurfaceVariant
413
- * @return {this}
414
- */
415
- withOnSurfaceVariant(onSurfaceVariant) {
416
- this.onSurfaceVariant = onSurfaceVariant;
417
- return this;
418
- }
419
-
420
- /**
421
- * @param {number} outline
422
- * @return {this}
423
- */
424
- withOutline(outline) {
425
- this.outline = outline;
426
- return this;
427
- }
428
-
429
- /**
430
- * @param {number} outlineVariant
431
- * @return {this}
432
- */
433
- withOutlineVariant(outlineVariant) {
434
- this.outlineVariant = outlineVariant;
435
- return this;
436
- }
437
-
438
- /**
439
- * @param {number} shadow
440
- * @return {this}
441
- */
442
- withShadow(shadow) {
443
- this.shadow = shadow;
444
- return this;
445
- }
446
-
447
- /**
448
- * @param {number} scrim
449
- * @return {this}
450
- */
451
- withScrim(scrim) {
452
- this.scrim = scrim;
453
- return this;
454
- }
455
-
456
- /**
457
- * @param {number} inverseSurface
458
- * @return {this}
459
- */
460
- withInverseSurface(inverseSurface) {
461
- this.inverseSurface = inverseSurface;
462
- return this;
463
- }
464
-
465
- /**
466
- * @param {number} inverseOnSurface
467
- * @return {this}
468
- */
469
- withInverseOnSurface(inverseOnSurface) {
470
- this.inverseOnSurface = inverseOnSurface;
471
- return this;
472
- }
473
-
474
- /**
475
- * @param {number} inversePrimary
476
- * @return {this}
477
- */
478
- withInversePrimary(inversePrimary) {
479
- this.inversePrimary = inversePrimary;
480
- return this;
481
- }
482
-
483
- /**
484
- * @param {any} object
485
- @return {boolean} */
486
- equals(object) {
487
- if (this === object) {
488
- return true;
489
- }
490
- if (!(object instanceof Scheme)) {
491
- return false;
492
- }
493
-
494
- /** @type {Scheme} */
495
- const scheme = object;
496
-
497
- if (this.primary !== scheme.primary) {
498
- return false;
499
- }
500
- if (this.onPrimary !== scheme.onPrimary) {
501
- return false;
502
- }
503
- if (this.primaryContainer !== scheme.primaryContainer) {
504
- return false;
505
- }
506
- if (this.onPrimaryContainer !== scheme.onPrimaryContainer) {
507
- return false;
508
- }
509
- if (this.secondary !== scheme.secondary) {
510
- return false;
511
- }
512
- if (this.onSecondary !== scheme.onSecondary) {
513
- return false;
514
- }
515
- if (this.secondaryContainer !== scheme.secondaryContainer) {
516
- return false;
517
- }
518
- if (this.onSecondaryContainer !== scheme.onSecondaryContainer) {
519
- return false;
520
- }
521
- if (this.tertiary !== scheme.tertiary) {
522
- return false;
523
- }
524
- if (this.onTertiary !== scheme.onTertiary) {
525
- return false;
526
- }
527
- if (this.tertiaryContainer !== scheme.tertiaryContainer) {
528
- return false;
529
- }
530
- if (this.onTertiaryContainer !== scheme.onTertiaryContainer) {
531
- return false;
532
- }
533
- if (this.error !== scheme.error) {
534
- return false;
535
- }
536
- if (this.onError !== scheme.onError) {
537
- return false;
538
- }
539
- if (this.errorContainer !== scheme.errorContainer) {
540
- return false;
541
- }
542
- if (this.onErrorContainer !== scheme.onErrorContainer) {
543
- return false;
544
- }
545
- if (this.background !== scheme.background) {
546
- return false;
547
- }
548
- if (this.onBackground !== scheme.onBackground) {
549
- return false;
550
- }
551
- if (this.surface !== scheme.surface) {
552
- return false;
553
- }
554
- if (this.onSurface !== scheme.onSurface) {
555
- return false;
556
- }
557
- if (this.surfaceVariant !== scheme.surfaceVariant) {
558
- return false;
559
- }
560
- if (this.onSurfaceVariant !== scheme.onSurfaceVariant) {
561
- return false;
562
- }
563
- if (this.outline !== scheme.outline) {
564
- return false;
565
- }
566
- if (this.outlineVariant !== scheme.outlineVariant) {
567
- return false;
568
- }
569
- if (this.shadow !== scheme.shadow) {
570
- return false;
571
- }
572
- if (this.scrim !== scheme.scrim) {
573
- return false;
574
- }
575
- if (this.inverseSurface !== scheme.inverseSurface) {
576
- return false;
577
- }
578
- if (this.inverseOnSurface !== scheme.inverseOnSurface) {
579
- return false;
580
- }
581
- if (this.inversePrimary !== scheme.inversePrimary) {
582
- return false;
583
- }
584
-
585
- return true;
586
- }
587
- }