material 3.10.0 → 3.11.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/NOTICE +3 -1
- package/README.md +3 -3
- package/dist/components/badge/index.d.ts +6 -6
- package/dist/components/card/api.js +14 -10
- package/dist/components/card/config.js +10 -7
- package/dist/components/card/content.js +4 -3
- package/dist/components/card/index.d.ts +18 -13
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/chips/index.d.ts +10 -10
- package/dist/components/datepicker/deferred.d.ts +10 -0
- package/dist/components/datepicker/deferred.js +38 -0
- package/dist/components/datepicker/field-format.js +83 -0
- package/dist/components/datepicker/index.d.ts +12 -12
- package/dist/components/datepicker/render.js +3 -3
- package/dist/components/datepicker/shell.js +368 -0
- package/dist/components/datepicker/surface.js +353 -0
- package/dist/components/datepicker/utils.js +1 -1
- package/dist/components/dialog/index.d.ts +9 -9
- package/dist/components/divider/index.d.ts +2 -5
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/list/index.d.ts +4 -4
- package/dist/components/loading-indicator/index.d.ts +11 -14
- package/dist/components/menu/deferred.d.ts +51 -0
- package/dist/components/menu/deferred.js +457 -0
- package/dist/components/menu/inner.d.ts +2 -2
- package/dist/components/menu/on-demand.d.ts +5 -9
- package/dist/components/menu/types.d.ts +8 -8
- package/dist/components/progress/types.d.ts +5 -5
- package/dist/components/search/features/states.js +17 -36
- package/dist/components/search/index.d.ts +22 -22
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/slider/index.d.ts +10 -10
- package/dist/components/snackbar/index.d.ts +10 -10
- package/dist/components/split-button/types.d.ts +3 -3
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/tabs/index.d.ts +32 -54
- package/dist/components/text-field/index.d.ts +22 -29
- package/dist/components/timepicker/dial.js +30 -3
- package/dist/components/timepicker/index.d.ts +2 -2
- package/dist/components/timepicker/render.js +11 -8
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/core/canvas/utils.js +3 -13
- package/dist/core/compose/cleanup.d.ts +1 -1
- package/dist/core/compose/index.d.ts +10 -13
- package/dist/core/config/component.d.ts +1 -4
- package/dist/core/dom/create.d.ts +1 -4
- package/dist/core/dom/index.d.ts +10 -22
- package/dist/core/navigation/destinations.d.ts +6 -6
- package/dist/core/shapes/index.d.ts +3 -3
- package/dist/core/utils/index.d.ts +1 -4
- package/dist/core/utils/mobile.d.ts +2 -2
- package/dist/elements/adapter.d.ts +3 -3
- package/dist/elements/card.js +3 -1
- package/dist/elements/css/datepicker.css +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/define.d.ts +3 -3
- package/dist/elements/index.d.ts +7 -3
- package/dist/elements/menu-entry.d.ts +3 -0
- package/dist/elements/menu-entry.js +1 -0
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/elements/styles.d.ts +7 -7
- package/dist/elements/styles.js +2 -2
- package/dist/react/create.d.ts +2 -6
- package/dist/solid/create.d.ts +2 -7
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base-elements.css +2 -0
- package/dist/styles/base-elements.js +2 -0
- package/dist/styles/base-lite.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +2 -2
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +2 -2
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-app-bar.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles.css +2 -2
- package/dist/svelte/runtime.d.ts +6 -10
- package/dist/theme/vendor/contrast/contrast.js +1 -16
- package/dist/theme/vendor/dislike/dislike_analyzer.js +1 -16
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +1 -16
- package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +1 -16
- package/dist/theme/vendor/dynamiccolor/contrast_curve.js +1 -16
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +2 -2
- package/dist/theme/vendor/dynamiccolor/dynamic_color.js +1 -16
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +2 -2
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +1 -16
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +1 -16
- package/dist/theme/vendor/dynamiccolor/spec_2025.js +1 -16
- package/dist/theme/vendor/dynamiccolor/spec_extensions.js +1 -16
- package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +1 -16
- package/dist/theme/vendor/dynamiccolor/variant.js +1 -16
- package/dist/theme/vendor/hct/cam16.js +1 -16
- package/dist/theme/vendor/hct/hct.js +1 -16
- package/dist/theme/vendor/hct/hct_solver.js +1 -16
- package/dist/theme/vendor/hct/viewing_conditions.js +1 -16
- package/dist/theme/vendor/palettes/tonal_palette.d.ts +6 -9
- package/dist/theme/vendor/palettes/tonal_palette.js +1 -16
- package/dist/theme/vendor/quantize/lab_point_provider.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_celebi.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_map.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_wsmeans.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_wu.js +1 -16
- package/dist/theme/vendor/score/score.js +1 -16
- package/dist/theme/vendor/temperature/temperature_cache.js +1 -16
- package/dist/theme/vendor/utils/color_utils.js +1 -16
- package/dist/theme/vendor/utils/image_utils.js +1 -16
- package/dist/theme/vendor/utils/math_utils.js +1 -16
- package/dist/theme/vendor/utils/string_utils.js +1 -16
- package/dist/themes/autumn-contrast.css +1 -1
- package/dist/themes/autumn.css +1 -1
- package/dist/themes/baseline-contrast.css +1 -1
- package/dist/themes/baseline.css +1 -1
- package/dist/themes/brownbeige-contrast.css +1 -1
- package/dist/themes/brownbeige.css +1 -1
- package/dist/themes/content-contrast.css +1 -1
- package/dist/themes/content.css +1 -1
- package/dist/themes/desert-contrast.css +1 -1
- package/dist/themes/desert.css +1 -1
- package/dist/themes/expressive-contrast.css +1 -1
- package/dist/themes/expressive.css +1 -1
- package/dist/themes/fidelity-contrast.css +1 -1
- package/dist/themes/fidelity.css +1 -1
- package/dist/themes/forest-contrast.css +1 -1
- package/dist/themes/forest.css +1 -1
- package/dist/themes/fruit-salad-contrast.css +1 -1
- package/dist/themes/fruit-salad.css +1 -1
- package/dist/themes/highcontrast-contrast.css +1 -1
- package/dist/themes/highcontrast.css +1 -1
- package/dist/themes/monochrome-contrast.css +1 -1
- package/dist/themes/monochrome.css +1 -1
- package/dist/themes/neutral-contrast.css +1 -1
- package/dist/themes/neutral.css +1 -1
- package/dist/themes/ocean-contrast.css +1 -1
- package/dist/themes/ocean.css +1 -1
- package/dist/themes/rainbow-contrast.css +1 -1
- package/dist/themes/rainbow.css +1 -1
- package/dist/themes/sageivory-contrast.css +1 -1
- package/dist/themes/sageivory.css +1 -1
- package/dist/themes/spring-contrast.css +1 -1
- package/dist/themes/spring.css +1 -1
- package/dist/themes/summer-contrast.css +1 -1
- package/dist/themes/summer.css +1 -1
- package/dist/themes/sunset-contrast.css +1 -1
- package/dist/themes/sunset.css +1 -1
- package/dist/themes/tealcaramel-contrast.css +1 -1
- package/dist/themes/tealcaramel.css +1 -1
- package/dist/themes/vibrant-contrast.css +1 -1
- package/dist/themes/vibrant.css +1 -1
- package/dist/vue/index.d.ts +2 -6
- package/package.json +13 -1
- package/src/styles/components/_datepicker.scss +1 -1
- package/src/styles/components/_timepicker.scss +17 -4
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -47,30 +47,26 @@ export interface Binding {
|
|
|
47
47
|
}
|
|
48
48
|
export interface Adapter {
|
|
49
49
|
tag: string;
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
attributes: (props: Record<string, unknown>, live: Record<string, unknown>, shadow?: string) => Record<string, unknown>;
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
snippets: (props: Record<string, unknown>) => Array<[
|
|
54
54
|
slot: string,
|
|
55
55
|
snippet: Snippet
|
|
56
56
|
]>;
|
|
57
57
|
action: Action<HTMLElement, Binding>;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
* The runtime of the Svelte component for an element.
|
|
61
|
-
* @param spec
|
|
62
|
-
* @param define
|
|
63
|
-
*/
|
|
59
|
+
|
|
64
60
|
export declare const adapter: (spec: ComponentSpec, define: (options?: DefineOptions) => string) => Adapter;
|
|
65
|
-
|
|
61
|
+
|
|
66
62
|
export declare const declaration: (spec: DeclarationSpec) => {
|
|
67
63
|
tag: string;
|
|
68
64
|
attributes: (props: Record<string, unknown>) => Record<string, unknown>;
|
|
69
65
|
};
|
|
70
|
-
|
|
66
|
+
|
|
71
67
|
export type SvelteShadowRenderer = (tag: string, attributes: Record<string, unknown>, children: Snippet | undefined, slots: Array<[
|
|
72
68
|
slot: string,
|
|
73
69
|
snippet: Snippet
|
|
74
70
|
]>, prefix: string) => string;
|
|
75
|
-
|
|
71
|
+
|
|
76
72
|
export declare const shadowMarkup: (runtime: Adapter, props: Record<string, unknown>, children: Snippet | undefined, live: Record<string, unknown>) => string;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2022 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
import * as math from "../utils/math_utils.js";
|
|
19
4
|
export class Contrast {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2023 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Hct } from "../hct/hct.js";
|
|
18
3
|
export class DislikeAnalyzer {
|
|
19
4
|
static isDisliked(hct) {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2025 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { DislikeAnalyzer } from "../dislike/dislike_analyzer.js";
|
|
18
3
|
import { Hct } from "../hct/hct.js";
|
|
19
4
|
import { ContrastCurve } from "./contrast_curve.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2025 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Hct } from "../hct/hct.js";
|
|
18
3
|
import * as math from "../utils/math_utils.js";
|
|
19
4
|
import { ColorSpecDelegateImpl2021 } from "./color_spec_2021.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2023 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as math from "../utils/math_utils.js";
|
|
18
3
|
export class ContrastCurve {
|
|
19
4
|
constructor(low, normal, medium, high) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export function registerCalculationSpec(delegate: any): void;
|
|
3
3
|
/** A color that adjusts itself based on UI state provided by DynamicScheme. */
|
|
4
4
|
export class DynamicColor {
|
|
@@ -63,7 +63,7 @@ export class DynamicColor {
|
|
|
63
63
|
*/
|
|
64
64
|
getTone(scheme: any): any;
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
export class ColorCalculationDelegateImpl2021 {
|
|
68
68
|
getHct(scheme: any, color: any): any;
|
|
69
69
|
getTone(scheme: any, color: any): any;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2022 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Contrast } from "../contrast/contrast.js";
|
|
18
3
|
import { Hct } from "../hct/hct.js";
|
|
19
4
|
import * as math from "../utils/math_utils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export function registerPaletteSpec(delegate: any): void;
|
|
3
3
|
/** Constructed by a set of values representing the current UI state (such as whether or not its dark theme, what the theme style is, etc.), and provides a set of TonalPalettes that can create colors that fit in with the theme style. */
|
|
4
4
|
export class DynamicScheme {
|
|
@@ -99,7 +99,7 @@ export namespace DynamicScheme {
|
|
|
99
99
|
let DEFAULT_SPEC_VERSION: string;
|
|
100
100
|
let DEFAULT_PLATFORM: string;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
|
|
103
103
|
export class DynamicSchemePalettesDelegateImpl2021 {
|
|
104
104
|
getPrimaryPalette(variant: any, sourceColorHct: any, isDark: any, platform: any, contrastLevel: any): TonalPalette;
|
|
105
105
|
getSecondaryPalette(variant: any, sourceColorHct: any, isDark: any, platform: any, contrastLevel: any): TonalPalette;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2022 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { DislikeAnalyzer } from "../dislike/dislike_analyzer.js";
|
|
18
3
|
import { Hct } from "../hct/hct.js";
|
|
19
4
|
import { TonalPalette } from "../palettes/tonal_palette.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2022 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { ColorSpecDelegateImpl2021 } from "./color_spec_2021.js";
|
|
18
3
|
export class MaterialDynamicColors {
|
|
19
4
|
constructor() {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2025 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Contrast } from "../contrast/contrast.js";
|
|
18
3
|
import { Hct } from "../hct/hct.js";
|
|
19
4
|
import { TonalPalette } from "../palettes/tonal_palette.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2025 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { DynamicColor } from "./dynamic_color.js";
|
|
18
3
|
function validateExtendedColor(originalColor, specVersion, extendedColor) {
|
|
19
4
|
if (originalColor.name !== extendedColor.name) {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2023 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
export class ToneDeltaPair {
|
|
18
3
|
constructor(roleA, roleB, delta, polarity, stayTogether, constraint) {
|
|
19
4
|
this.roleA = roleA;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2022 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
export var Variant;
|
|
18
3
|
(function (Variant) {
|
|
19
4
|
Variant[Variant["MONOCHROME"] = 0] = "MONOCHROME";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
import * as math from "../utils/math_utils.js";
|
|
19
4
|
import { ViewingConditions } from "./viewing_conditions.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
import { Cam16 } from "./cam16.js";
|
|
19
4
|
import { HctSolver } from "./hct_solver.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as colorUtils from "../utils/color_utils.js";
|
|
18
3
|
import * as mathUtils from "../utils/math_utils.js";
|
|
19
4
|
import { Cam16 } from "./cam16.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
import * as math from "../utils/math_utils.js";
|
|
19
4
|
export class ViewingConditions {
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export class TonalPalette {
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
static fromInt(argb: any): TonalPalette;
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
static fromHct(hct: any): TonalPalette;
|
|
7
|
-
|
|
8
|
-
* @param hue
|
|
9
|
-
* @param chroma
|
|
10
|
-
*/
|
|
7
|
+
|
|
11
8
|
static fromHueAndChroma(hue: any, chroma: any): TonalPalette;
|
|
12
9
|
constructor(hue: any, chroma: any, keyColor: any);
|
|
13
10
|
hue: any;
|
|
14
11
|
chroma: any;
|
|
15
12
|
keyColor: any;
|
|
16
13
|
cache: Map<any, any>;
|
|
17
|
-
|
|
14
|
+
|
|
18
15
|
tone(tone: any): any;
|
|
19
|
-
|
|
16
|
+
|
|
20
17
|
getHct(tone: any): Hct;
|
|
21
18
|
averageArgb(argb1: any, argb2: any): number;
|
|
22
19
|
}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Hct } from "../hct/hct.js";
|
|
18
3
|
export class TonalPalette {
|
|
19
4
|
static fromInt(argb) {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
export class LabPointProvider {
|
|
19
4
|
fromInt(argb) {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { QuantizerWsmeans } from "./quantizer_wsmeans.js";
|
|
18
3
|
import { QuantizerWu } from "./quantizer_wu.js";
|
|
19
4
|
export class QuantizerCelebi {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
export class QuantizerMap {
|
|
19
4
|
static quantize(pixels) {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { LabPointProvider } from "./lab_point_provider.js";
|
|
18
3
|
const MAX_ITERATIONS = 10;
|
|
19
4
|
const MIN_MOVEMENT_DISTANCE = 3.0;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as utils from "../utils/color_utils.js";
|
|
18
3
|
import { QuantizerMap } from "./quantizer_map.js";
|
|
19
4
|
const INDEX_BITS = 5;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Hct } from "../hct/hct.js";
|
|
18
3
|
import * as math from "../utils/math_utils.js";
|
|
19
4
|
const SCORE_OPTION_DEFAULTS = {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2023 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import { Hct } from "../hct/hct.js";
|
|
18
3
|
import * as colorUtils from "../utils/color_utils.js";
|
|
19
4
|
import * as mathUtils from "../utils/math_utils.js";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
1
|
+
/*! @license Copyright 2021 Google LLC | Apache-2.0 (see NOTICE) */
|
|
17
2
|
import * as mathUtils from "./math_utils.js";
|
|
18
3
|
const SRGB_TO_XYZ = [
|
|
19
4
|
[0.41233895, 0.35762064, 0.18051042],
|