chrome-devtools-mcp 1.8.0 → 1.9.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/README.md +20 -908
- package/build/src/McpContext.js +38 -21
- package/build/src/McpPage.js +5 -1
- package/build/src/ToolHandler.js +15 -45
- package/build/src/bin/chrome-devtools-mcp-main.js +2 -2
- package/build/src/browser.js +5 -16
- package/build/src/config/browser-options.js +123 -0
- package/build/src/config/category-options.js +80 -0
- package/build/src/config/cli-options.js +2 -2
- package/build/src/config/mcp-options.js +46 -146
- package/build/src/daemon/utils.js +6 -0
- package/build/src/devtools/DevtoolsUtils.js +27 -21
- package/build/src/formatters/NetworkFormatter.js +5 -2
- package/build/src/index.js +168 -102
- package/build/src/telemetry/ClearcutLogger.js +5 -4
- package/build/src/third_party/THIRD_PARTY_NOTICES +5 -5
- package/build/src/third_party/bundled-packages.json +2 -2
- package/build/src/third_party/devtools-formatter-worker.js +22 -0
- package/build/src/third_party/devtools-heap-snapshot-worker.js +22 -0
- package/build/src/third_party/index.js +4467 -2755
- package/build/src/tools/ToolDefinition.js +15 -0
- package/build/src/tools/categories.js +0 -6
- package/build/src/tools/network.js +1 -1
- package/build/src/tools/pages.js +22 -7
- package/build/src/tools/performance.js +1 -0
- package/build/src/tools/screencast.js +1 -0
- package/build/src/tools/script.js +1 -0
- package/build/src/tools/slim/tools.js +41 -33
- package/build/src/utils/WaitForHelper.js +12 -1
- package/build/src/utils/url.js +73 -0
- package/build/src/version.js +1 -1
- package/package.json +4 -4
- package/skills/chrome-devtools-cli/SKILL.md +1 -7
- package/skills/cookie-debugging/SKILL.md +149 -0
- package/skills/memory-leak-debugging/SKILL.md +4 -0
package/build/src/index.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2026 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { pathToFileURL } from 'node:url';
|
|
6
8
|
import { ensureBrowserConnected, ensureBrowserLaunched } from './browser.js';
|
|
7
9
|
import { loadIssueDescriptions } from './devtools/issueDescriptions.js';
|
|
8
10
|
import { McpContext } from './McpContext.js';
|
|
9
11
|
import { ClearcutLogger } from './telemetry/ClearcutLogger.js';
|
|
10
12
|
import { FilePersistence } from './telemetry/persistence.js';
|
|
11
|
-
import { McpServer, SetLevelRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, } from './third_party/index.js';
|
|
13
|
+
import { McpServer as SdkMcpServer, SetLevelRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, Mutex, puppeteer, } from './third_party/index.js';
|
|
12
14
|
import { ToolHandler } from './ToolHandler.js';
|
|
13
15
|
import { createTools } from './tools/tools.js';
|
|
14
16
|
import { logger } from './utils/logger.js';
|
|
15
|
-
import { Mutex, puppeteer } from './third_party/index.js';
|
|
16
17
|
import { VERSION } from './version.js';
|
|
17
|
-
export { buildFlag } from './ToolHandler.js';
|
|
18
18
|
puppeteer.setFollowSymlinks(false);
|
|
19
19
|
/**
|
|
20
20
|
* Timeout for a `roots/list` that a tool call is waiting on, matching the 5s
|
|
@@ -25,141 +25,202 @@ puppeteer.setFollowSymlinks(false);
|
|
|
25
25
|
* slow client sends late still land.
|
|
26
26
|
*/
|
|
27
27
|
const ROOTS_REQUEST_TIMEOUT = 5_000;
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
export class McpServer {
|
|
29
|
+
server;
|
|
30
|
+
#serverArgs;
|
|
31
|
+
#options;
|
|
32
|
+
#context;
|
|
33
|
+
/**
|
|
34
|
+
* Client roots stay valid across browser reconnects and only the client can
|
|
35
|
+
* invalidate them through a `roots/list_changed` notification. CLI-configured
|
|
36
|
+
* roots are read from `#serverArgs` when combining roots.
|
|
37
|
+
*/
|
|
38
|
+
#lastClientRoots;
|
|
39
|
+
#toolMutex = new Mutex();
|
|
40
|
+
constructor(serverArgs, options = {}) {
|
|
41
|
+
this.#serverArgs = serverArgs;
|
|
42
|
+
this.#options = options;
|
|
43
|
+
if (this.#serverArgs.usageStatistics) {
|
|
44
|
+
ClearcutLogger.initialize({
|
|
45
|
+
persistence: new FilePersistence(),
|
|
46
|
+
logFile: this.#serverArgs.logFile,
|
|
47
|
+
appVersion: VERSION,
|
|
48
|
+
clearcutEndpoint: this.#serverArgs.clearcutEndpoint,
|
|
49
|
+
clearcutForceFlushIntervalMs: this.#serverArgs.clearcutForceFlushIntervalMs,
|
|
50
|
+
clearcutIncludePidHeader: this.#serverArgs.clearcutIncludePidHeader,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
this.server = new SdkMcpServer({
|
|
54
|
+
name: 'chrome_devtools',
|
|
55
|
+
title: 'Chrome DevTools MCP server',
|
|
56
|
+
version: VERSION,
|
|
57
|
+
}, { capabilities: { logging: {} } });
|
|
58
|
+
this.server.server.setRequestHandler(SetLevelRequestSchema, () => {
|
|
59
|
+
return {};
|
|
37
60
|
});
|
|
61
|
+
this.server.server.oninitialized = () => {
|
|
62
|
+
const clientName = this.server.server.getClientVersion()?.name;
|
|
63
|
+
if (clientName) {
|
|
64
|
+
ClearcutLogger.get()?.setClientName(clientName);
|
|
65
|
+
}
|
|
66
|
+
if (this.server.server.getClientCapabilities()?.roots) {
|
|
67
|
+
void this.#updateRoots();
|
|
68
|
+
this.server.server.setNotificationHandler(RootsListChangedNotificationSchema, () => {
|
|
69
|
+
void this.#updateRoots();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
else if (!this.#serverArgs.allowUnrestrictedPaths &&
|
|
73
|
+
(this.#serverArgs.filesystemRoot ?? []).length === 0) {
|
|
74
|
+
console.warn('[chrome-devtools-mcp] The connecting client did not negotiate the MCP roots ' +
|
|
75
|
+
'capability. File-writing tools will be restricted to the OS temp directory. ' +
|
|
76
|
+
'To restore the previous unrestricted behavior, start the server with ' +
|
|
77
|
+
'--allow-unrestricted-paths.');
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
async connect(transport) {
|
|
82
|
+
return await this.server.connect(transport);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Closes the MCP connection and disposes internal context/listeners.
|
|
86
|
+
*/
|
|
87
|
+
async close() {
|
|
88
|
+
this.#context?.dispose();
|
|
89
|
+
this.#context = undefined;
|
|
90
|
+
await this.server.close();
|
|
91
|
+
}
|
|
92
|
+
[Symbol.dispose]() {
|
|
93
|
+
this.close().catch(() => {
|
|
94
|
+
// TODO: wire up the logger
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
async [Symbol.asyncDispose]() {
|
|
98
|
+
await this.close();
|
|
99
|
+
}
|
|
100
|
+
static async from(serverArgs, options = {}) {
|
|
101
|
+
const server = new McpServer(serverArgs, options);
|
|
102
|
+
await server.#init();
|
|
103
|
+
return server;
|
|
104
|
+
}
|
|
105
|
+
async #init() {
|
|
106
|
+
const tools = createTools(this.#serverArgs);
|
|
107
|
+
for (const tool of tools) {
|
|
108
|
+
this.#registerTool(tool);
|
|
109
|
+
}
|
|
110
|
+
await loadIssueDescriptions();
|
|
38
111
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
112
|
+
#combinedRoots() {
|
|
113
|
+
const configuredRoots = (this.#serverArgs.allowUnrestrictedPaths
|
|
114
|
+
? []
|
|
115
|
+
: (this.#serverArgs.filesystemRoot ?? [])).map(root => {
|
|
116
|
+
const rootPath = path.resolve(String(root));
|
|
117
|
+
return {
|
|
118
|
+
uri: pathToFileURL(rootPath).href,
|
|
119
|
+
name: path.basename(rootPath) || rootPath,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
if (configuredRoots.length === 0 && this.#lastClientRoots === undefined) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
return [...configuredRoots, ...(this.#lastClientRoots ?? [])];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* `timeout` is only passed where a tool call is waiting on the result – the
|
|
129
|
+
* background refreshes below block nobody, so bounding them would just discard
|
|
130
|
+
* roots a slow client was about to send
|
|
131
|
+
*/
|
|
132
|
+
async #updateRoots(timeout) {
|
|
133
|
+
if (!this.server.server.getClientCapabilities()?.roots) {
|
|
56
134
|
return;
|
|
57
135
|
}
|
|
58
136
|
try {
|
|
59
|
-
const roots = await server.server.request({ method: 'roots/list' }, ListRootsResultSchema, timeout === undefined ? undefined : { timeout });
|
|
60
|
-
|
|
61
|
-
context?.setRoots(
|
|
137
|
+
const roots = await this.server.server.request({ method: 'roots/list' }, ListRootsResultSchema, timeout === undefined ? undefined : { timeout });
|
|
138
|
+
this.#lastClientRoots = roots.roots;
|
|
139
|
+
this.#context?.setRoots(this.#combinedRoots());
|
|
62
140
|
}
|
|
63
141
|
catch (e) {
|
|
64
142
|
logger?.('Failed to list roots', e);
|
|
65
143
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (server.server.getClientCapabilities()?.roots) {
|
|
73
|
-
void updateRoots();
|
|
74
|
-
server.server.setNotificationHandler(RootsListChangedNotificationSchema, () => {
|
|
75
|
-
void updateRoots();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
else if (!serverArgs.allowUnrestrictedPaths) {
|
|
79
|
-
console.warn('[chrome-devtools-mcp] The connecting client did not negotiate the MCP roots ' +
|
|
80
|
-
'capability. File-writing tools will be restricted to the OS temp directory. ' +
|
|
81
|
-
'To restore the previous unrestricted behavior, start the server with ' +
|
|
82
|
-
'--allow-unrestricted-paths.');
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
let context;
|
|
86
|
-
async function getContext() {
|
|
87
|
-
const chromeArgs = (serverArgs.chromeArg ?? []).map(String);
|
|
88
|
-
const ignoreDefaultChromeArgs = (serverArgs.ignoreDefaultChromeArg ?? []).map(String);
|
|
89
|
-
if (serverArgs.proxyServer) {
|
|
90
|
-
chromeArgs.push(`--proxy-server=${serverArgs.proxyServer}`);
|
|
144
|
+
}
|
|
145
|
+
async #getContext() {
|
|
146
|
+
const chromeArgs = (this.#serverArgs.chromeArg ?? []).map(String);
|
|
147
|
+
const ignoreDefaultChromeArgs = (this.#serverArgs.ignoreDefaultChromeArg ?? []).map(String);
|
|
148
|
+
if (this.#serverArgs.proxyServer) {
|
|
149
|
+
chromeArgs.push(`--proxy-server=${this.#serverArgs.proxyServer}`);
|
|
91
150
|
}
|
|
92
|
-
const devtools = serverArgs.experimentalDevtools ?? false;
|
|
93
|
-
const blocklist = serverArgs.blockedUrlPattern
|
|
94
|
-
? serverArgs.blockedUrlPattern.map(String)
|
|
151
|
+
const devtools = this.#serverArgs.experimentalDevtools ?? false;
|
|
152
|
+
const blocklist = this.#serverArgs.blockedUrlPattern
|
|
153
|
+
? this.#serverArgs.blockedUrlPattern.map(String)
|
|
95
154
|
: undefined;
|
|
96
|
-
const allowlist = serverArgs.allowedUrlPattern
|
|
97
|
-
? serverArgs.allowedUrlPattern.map(String)
|
|
155
|
+
const allowlist = this.#serverArgs.allowedUrlPattern
|
|
156
|
+
? this.#serverArgs.allowedUrlPattern.map(String)
|
|
98
157
|
: undefined;
|
|
99
|
-
const
|
|
158
|
+
const channel = this.#serverArgs.channel;
|
|
159
|
+
const browser = this.#serverArgs.browserUrl ||
|
|
160
|
+
this.#serverArgs.wsEndpoint ||
|
|
161
|
+
this.#serverArgs.autoConnect
|
|
100
162
|
? await ensureBrowserConnected({
|
|
101
|
-
browserURL: serverArgs.browserUrl,
|
|
102
|
-
wsEndpoint: serverArgs.wsEndpoint,
|
|
103
|
-
wsHeaders: serverArgs.wsHeaders,
|
|
163
|
+
browserURL: this.#serverArgs.browserUrl,
|
|
164
|
+
wsEndpoint: this.#serverArgs.wsEndpoint,
|
|
165
|
+
wsHeaders: this.#serverArgs.wsHeaders,
|
|
104
166
|
// Important: only pass channel, if autoConnect is true.
|
|
105
|
-
channel: serverArgs.autoConnect
|
|
106
|
-
|
|
107
|
-
: undefined,
|
|
108
|
-
userDataDir: serverArgs.userDataDir,
|
|
167
|
+
channel: this.#serverArgs.autoConnect ? channel : undefined,
|
|
168
|
+
userDataDir: this.#serverArgs.userDataDir,
|
|
109
169
|
devtools,
|
|
110
170
|
blocklist,
|
|
111
171
|
allowlist,
|
|
112
172
|
})
|
|
113
173
|
: await ensureBrowserLaunched({
|
|
114
|
-
headless: serverArgs.headless,
|
|
115
|
-
executablePath: serverArgs.executablePath,
|
|
116
|
-
channel
|
|
117
|
-
isolated: serverArgs.isolated ?? false,
|
|
118
|
-
userDataDir: serverArgs.userDataDir,
|
|
119
|
-
logFile: options.logFile,
|
|
120
|
-
viewport: serverArgs.viewport,
|
|
174
|
+
headless: this.#serverArgs.headless,
|
|
175
|
+
executablePath: this.#serverArgs.executablePath,
|
|
176
|
+
channel,
|
|
177
|
+
isolated: this.#serverArgs.isolated ?? false,
|
|
178
|
+
userDataDir: this.#serverArgs.userDataDir,
|
|
179
|
+
logFile: this.#options.logFile,
|
|
180
|
+
viewport: this.#serverArgs.viewport,
|
|
121
181
|
chromeArgs,
|
|
122
182
|
ignoreDefaultChromeArgs,
|
|
123
|
-
acceptInsecureCerts: serverArgs.acceptInsecureCerts,
|
|
183
|
+
acceptInsecureCerts: this.#serverArgs.acceptInsecureCerts,
|
|
124
184
|
devtools,
|
|
125
|
-
enableExtensions: serverArgs.categoryExtensions,
|
|
126
|
-
viaCli: serverArgs.viaCli,
|
|
185
|
+
enableExtensions: this.#serverArgs.categoryExtensions,
|
|
186
|
+
viaCli: this.#serverArgs.viaCli,
|
|
127
187
|
blocklist,
|
|
128
188
|
allowlist,
|
|
129
189
|
});
|
|
130
|
-
if (context?.browser !== browser) {
|
|
131
|
-
context?.dispose();
|
|
132
|
-
context = await McpContext.from(browser, logger, {
|
|
190
|
+
if (this.#context?.browser !== browser) {
|
|
191
|
+
this.#context?.dispose();
|
|
192
|
+
this.#context = await McpContext.from(browser, logger, {
|
|
133
193
|
experimentalDevToolsDebugging: devtools,
|
|
134
|
-
experimentalIncludeAllPages: serverArgs.experimentalIncludeAllPages,
|
|
135
|
-
performanceCrux: serverArgs.performanceCrux,
|
|
194
|
+
experimentalIncludeAllPages: this.#serverArgs.experimentalIncludeAllPages,
|
|
195
|
+
performanceCrux: this.#serverArgs.performanceCrux,
|
|
196
|
+
sourceMaps: this.#serverArgs.sourceMaps,
|
|
136
197
|
allowList: allowlist,
|
|
137
198
|
blocklist: blocklist,
|
|
138
|
-
allowUnrestrictedPaths: serverArgs.allowUnrestrictedPaths,
|
|
199
|
+
allowUnrestrictedPaths: this.#serverArgs.allowUnrestrictedPaths,
|
|
139
200
|
// Surfaces a one-time note in the next response after a reconnect.
|
|
140
|
-
reconnected: context !== undefined,
|
|
201
|
+
reconnected: this.#context !== undefined,
|
|
202
|
+
categoryExtensions: this.#serverArgs.categoryExtensions,
|
|
141
203
|
});
|
|
142
|
-
|
|
204
|
+
this.#context.setRoots(this.#combinedRoots());
|
|
205
|
+
if (this.#lastClientRoots === undefined) {
|
|
143
206
|
// Nothing listed yet, so this call has to wait – bounded, since it is
|
|
144
207
|
// holding the tool mutex, and a later background refresh still lands
|
|
145
|
-
await updateRoots(ROOTS_REQUEST_TIMEOUT);
|
|
208
|
+
await this.#updateRoots(ROOTS_REQUEST_TIMEOUT);
|
|
146
209
|
}
|
|
147
210
|
else {
|
|
148
211
|
// Carry the known roots over and refresh out of band, so a reconnect
|
|
149
212
|
// never pays for a client round-trip
|
|
150
|
-
|
|
151
|
-
void updateRoots();
|
|
213
|
+
void this.#updateRoots();
|
|
152
214
|
}
|
|
153
215
|
}
|
|
154
|
-
return context;
|
|
216
|
+
return this.#context;
|
|
155
217
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const toolHandler = new ToolHandler(tool, serverArgs, getContext, toolMutex);
|
|
218
|
+
#registerTool(tool) {
|
|
219
|
+
const toolHandler = new ToolHandler(tool, this.#serverArgs, () => this.#getContext(), this.#toolMutex);
|
|
159
220
|
if (!toolHandler.shouldRegister) {
|
|
160
221
|
return;
|
|
161
222
|
}
|
|
162
|
-
server.registerTool(tool.name, {
|
|
223
|
+
this.server.registerTool(tool.name, {
|
|
163
224
|
description: tool.description,
|
|
164
225
|
inputSchema: toolHandler.registeredInputSchema,
|
|
165
226
|
annotations: tool.annotations,
|
|
@@ -167,12 +228,17 @@ export async function createMcpServer(serverArgs, options) {
|
|
|
167
228
|
return await toolHandler.handle(params);
|
|
168
229
|
});
|
|
169
230
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Creates and initializes a Chrome DevTools MCP server instance.
|
|
234
|
+
*
|
|
235
|
+
* Maintained as a public API for backwards compatibility because external
|
|
236
|
+
* consumers and integrations rely on `createMcpServer()`. For new code,
|
|
237
|
+
* prefer using `McpServer.from(serverArgs, options)`.
|
|
238
|
+
*/
|
|
239
|
+
export async function createMcpServer(serverArgs, options = {}) {
|
|
240
|
+
const server = await McpServer.from(serverArgs, options);
|
|
241
|
+
return { server: server.server };
|
|
176
242
|
}
|
|
177
243
|
export const logDisclaimers = (args) => {
|
|
178
244
|
console.error(`chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import process from 'node:process';
|
|
7
7
|
import { DAEMON_CLIENT_NAME } from '../daemon/utils.js';
|
|
8
8
|
import { logger } from '../utils/logger.js';
|
|
9
|
-
import { sanitizeParams, stripUnderscoreBeforeNumber } from './transformation.js';
|
|
9
|
+
import { bucketizeLatency, buildContext, sanitizeParams, stripUnderscoreBeforeNumber, } from './transformation.js';
|
|
10
10
|
import { McpClient, WatchdogMessageType, OsType, } from './types.js';
|
|
11
11
|
import { WatchdogClient } from './WatchdogClient.js';
|
|
12
12
|
const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
|
@@ -93,14 +93,15 @@ export class ClearcutLogger {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async logToolInvocation(args) {
|
|
96
|
+
const context = buildContext(args.devToolsData, args.pageUrl);
|
|
96
97
|
const sanitizedToolName = stripUnderscoreBeforeNumber(args.toolName);
|
|
97
98
|
const tool_invocation = {
|
|
98
99
|
tool_name: sanitizedToolName,
|
|
99
100
|
success: args.success,
|
|
100
|
-
latency_ms: args.latencyMs,
|
|
101
|
+
latency_ms: bucketizeLatency(args.latencyMs),
|
|
101
102
|
};
|
|
102
|
-
if (Object.keys(
|
|
103
|
-
tool_invocation.context =
|
|
103
|
+
if (Object.keys(context).length > 0) {
|
|
104
|
+
tool_invocation.context = context;
|
|
104
105
|
}
|
|
105
106
|
if (Object.keys(args.params).length > 0) {
|
|
106
107
|
tool_invocation.tool_params = {
|
|
@@ -495,7 +495,7 @@ SOFTWARE.
|
|
|
495
495
|
|
|
496
496
|
Name: fast-uri
|
|
497
497
|
URL: https://github.com/fastify/fast-uri
|
|
498
|
-
Version: 3.1.
|
|
498
|
+
Version: 3.1.7
|
|
499
499
|
License: BSD-3-Clause
|
|
500
500
|
|
|
501
501
|
Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
@@ -745,21 +745,21 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
745
745
|
|
|
746
746
|
Name: puppeteer-core
|
|
747
747
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
748
|
-
Version: 25.
|
|
748
|
+
Version: 25.10.0
|
|
749
749
|
License: Apache-2.0
|
|
750
750
|
|
|
751
751
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
752
752
|
|
|
753
753
|
Name: @puppeteer/browsers
|
|
754
754
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
|
|
755
|
-
Version: 3.2.
|
|
755
|
+
Version: 3.2.2
|
|
756
756
|
License: Apache-2.0
|
|
757
757
|
|
|
758
758
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
759
759
|
|
|
760
760
|
Name: ws
|
|
761
761
|
URL: https://github.com/websockets/ws
|
|
762
|
-
Version: 8.21.
|
|
762
|
+
Version: 8.21.3
|
|
763
763
|
License: MIT
|
|
764
764
|
|
|
765
765
|
Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
|
@@ -795,7 +795,7 @@ License: MIT
|
|
|
795
795
|
|
|
796
796
|
Name: devtools-frontend
|
|
797
797
|
URL: https://github.com/ChromeDevTools/devtools-frontend
|
|
798
|
-
Version:
|
|
798
|
+
Version: d1a4fbfd673fecf19981c27b3a461f9881eebe8e
|
|
799
799
|
License: Apache-2.0
|
|
800
800
|
|
|
801
801
|
// Copyright 2014 The Chromium Authors
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"lighthouse": "13.4.1",
|
|
5
5
|
"semver": "7.8.5",
|
|
6
6
|
"yargs": "18.1.0",
|
|
7
|
-
"puppeteer-core": "25.
|
|
8
|
-
"https://github.com/ChromeDevTools/devtools-frontend": "
|
|
7
|
+
"puppeteer-core": "25.10.0",
|
|
8
|
+
"https://github.com/ChromeDevTools/devtools-frontend": "d1a4fbfd673fecf19981c27b3a461f9881eebe8e"
|
|
9
9
|
}
|
|
@@ -8557,6 +8557,16 @@ class ColorConverter {
|
|
|
8557
8557
|
const rgbOutput = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
|
|
8558
8558
|
return applyTransferFns(NAMED_TRANSFER_FN.sRGB_INVERSE, rgbOutput.values[0], rgbOutput.values[1], rgbOutput.values[2]);
|
|
8559
8559
|
}
|
|
8560
|
+
static displayP3LinearToXyzd50(r, g, b) {
|
|
8561
|
+
const rgbInput = new Vector3([r, g, b]);
|
|
8562
|
+
const xyzOutput = NAMED_GAMUTS.displayP3.multiply(rgbInput);
|
|
8563
|
+
return xyzOutput.values;
|
|
8564
|
+
}
|
|
8565
|
+
static xyzd50ToDisplayP3Linear(x, y, z) {
|
|
8566
|
+
const xyzInput = new Vector3([x, y, z]);
|
|
8567
|
+
const rgbResult = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
|
|
8568
|
+
return rgbResult.values;
|
|
8569
|
+
}
|
|
8560
8570
|
static proPhotoToXyzd50(r, g, b) {
|
|
8561
8571
|
const [mappedR, mappedG, mappedB] = applyTransferFns(NAMED_TRANSFER_FN.proPhotoRGB, r, g, b);
|
|
8562
8572
|
const rgbInput = new Vector3([mappedR, mappedG, mappedB]);
|
|
@@ -8756,6 +8766,8 @@ function getColorSpace(colorSpaceText) {
|
|
|
8756
8766
|
return "srgb-linear" ;
|
|
8757
8767
|
case "display-p3" :
|
|
8758
8768
|
return "display-p3" ;
|
|
8769
|
+
case "display-p3-linear" :
|
|
8770
|
+
return "display-p3-linear" ;
|
|
8759
8771
|
case "a98-rgb" :
|
|
8760
8772
|
return "a98-rgb" ;
|
|
8761
8773
|
case "prophoto-rgb" :
|
|
@@ -8974,6 +8986,7 @@ class Lab {
|
|
|
8974
8986
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
8975
8987
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
8976
8988
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
8989
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
8977
8990
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
8978
8991
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
8979
8992
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9090,6 +9103,7 @@ class LCH {
|
|
|
9090
9103
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9091
9104
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9092
9105
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9106
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9093
9107
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9094
9108
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9095
9109
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9208,6 +9222,7 @@ class Oklab {
|
|
|
9208
9222
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9209
9223
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9210
9224
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9225
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9211
9226
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9212
9227
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9213
9228
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9324,6 +9339,7 @@ class Oklch {
|
|
|
9324
9339
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9325
9340
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9326
9341
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9342
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9327
9343
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9328
9344
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9329
9345
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9443,6 +9459,7 @@ class ColorFunction {
|
|
|
9443
9459
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9444
9460
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9445
9461
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9462
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9446
9463
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9447
9464
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9448
9465
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9459,6 +9476,8 @@ class ColorFunction {
|
|
|
9459
9476
|
return ColorConverter.srgbLinearToXyzd50(p0, p1, p2);
|
|
9460
9477
|
case "display-p3" :
|
|
9461
9478
|
return ColorConverter.displayP3ToXyzd50(p0, p1, p2);
|
|
9479
|
+
case "display-p3-linear" :
|
|
9480
|
+
return ColorConverter.displayP3LinearToXyzd50(p0, p1, p2);
|
|
9462
9481
|
case "a98-rgb" :
|
|
9463
9482
|
return ColorConverter.adobeRGBToXyzd50(p0, p1, p2);
|
|
9464
9483
|
case "prophoto-rgb" :
|
|
@@ -9614,6 +9633,7 @@ class HSL {
|
|
|
9614
9633
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9615
9634
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9616
9635
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9636
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9617
9637
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9618
9638
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9619
9639
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9741,6 +9761,7 @@ class HWB {
|
|
|
9741
9761
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9742
9762
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9743
9763
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9764
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9744
9765
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9745
9766
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9746
9767
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -9969,6 +9990,7 @@ class Legacy {
|
|
|
9969
9990
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
9970
9991
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
9971
9992
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
9993
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
9972
9994
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
9973
9995
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
9974
9996
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1001,6 +1001,16 @@ class ColorConverter {
|
|
|
1001
1001
|
const rgbOutput = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
|
|
1002
1002
|
return applyTransferFns(NAMED_TRANSFER_FN.sRGB_INVERSE, rgbOutput.values[0], rgbOutput.values[1], rgbOutput.values[2]);
|
|
1003
1003
|
}
|
|
1004
|
+
static displayP3LinearToXyzd50(r, g, b) {
|
|
1005
|
+
const rgbInput = new Vector3([r, g, b]);
|
|
1006
|
+
const xyzOutput = NAMED_GAMUTS.displayP3.multiply(rgbInput);
|
|
1007
|
+
return xyzOutput.values;
|
|
1008
|
+
}
|
|
1009
|
+
static xyzd50ToDisplayP3Linear(x, y, z) {
|
|
1010
|
+
const xyzInput = new Vector3([x, y, z]);
|
|
1011
|
+
const rgbResult = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
|
|
1012
|
+
return rgbResult.values;
|
|
1013
|
+
}
|
|
1004
1014
|
static proPhotoToXyzd50(r, g, b) {
|
|
1005
1015
|
const [mappedR, mappedG, mappedB] = applyTransferFns(NAMED_TRANSFER_FN.proPhotoRGB, r, g, b);
|
|
1006
1016
|
const rgbInput = new Vector3([mappedR, mappedG, mappedB]);
|
|
@@ -1200,6 +1210,8 @@ function getColorSpace(colorSpaceText) {
|
|
|
1200
1210
|
return "srgb-linear" ;
|
|
1201
1211
|
case "display-p3" :
|
|
1202
1212
|
return "display-p3" ;
|
|
1213
|
+
case "display-p3-linear" :
|
|
1214
|
+
return "display-p3-linear" ;
|
|
1203
1215
|
case "a98-rgb" :
|
|
1204
1216
|
return "a98-rgb" ;
|
|
1205
1217
|
case "prophoto-rgb" :
|
|
@@ -1418,6 +1430,7 @@ class Lab {
|
|
|
1418
1430
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
1419
1431
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1420
1432
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1433
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1421
1434
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1422
1435
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
1423
1436
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1534,6 +1547,7 @@ class LCH {
|
|
|
1534
1547
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
1535
1548
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1536
1549
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1550
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1537
1551
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1538
1552
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
1539
1553
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1652,6 +1666,7 @@ class Oklab {
|
|
|
1652
1666
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
1653
1667
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1654
1668
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1669
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1655
1670
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1656
1671
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
1657
1672
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1768,6 +1783,7 @@ class Oklch {
|
|
|
1768
1783
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
1769
1784
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1770
1785
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1786
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1771
1787
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1772
1788
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
1773
1789
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1887,6 +1903,7 @@ class ColorFunction {
|
|
|
1887
1903
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
1888
1904
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1889
1905
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1906
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1890
1907
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1891
1908
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
1892
1909
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -1903,6 +1920,8 @@ class ColorFunction {
|
|
|
1903
1920
|
return ColorConverter.srgbLinearToXyzd50(p0, p1, p2);
|
|
1904
1921
|
case "display-p3" :
|
|
1905
1922
|
return ColorConverter.displayP3ToXyzd50(p0, p1, p2);
|
|
1923
|
+
case "display-p3-linear" :
|
|
1924
|
+
return ColorConverter.displayP3LinearToXyzd50(p0, p1, p2);
|
|
1906
1925
|
case "a98-rgb" :
|
|
1907
1926
|
return ColorConverter.adobeRGBToXyzd50(p0, p1, p2);
|
|
1908
1927
|
case "prophoto-rgb" :
|
|
@@ -2058,6 +2077,7 @@ class HSL {
|
|
|
2058
2077
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
2059
2078
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
2060
2079
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
2080
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
2061
2081
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
2062
2082
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
2063
2083
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -2185,6 +2205,7 @@ class HWB {
|
|
|
2185
2205
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
2186
2206
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
2187
2207
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
2208
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
2188
2209
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
2189
2210
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
2190
2211
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|
|
@@ -2413,6 +2434,7 @@ class Legacy {
|
|
|
2413
2434
|
["srgb" ]: (self) => new ColorFunction("srgb" , ...ColorConverter.xyzd50ToSrgb(...self.#toXyzd50()), self.alpha),
|
|
2414
2435
|
["srgb-linear" ]: (self) => new ColorFunction("srgb-linear" , ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
2415
2436
|
["display-p3" ]: (self) => new ColorFunction("display-p3" , ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
2437
|
+
["display-p3-linear" ]: (self) => new ColorFunction("display-p3-linear" , ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
2416
2438
|
["a98-rgb" ]: (self) => new ColorFunction("a98-rgb" , ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
2417
2439
|
["prophoto-rgb" ]: (self) => new ColorFunction("prophoto-rgb" , ...ColorConverter.xyzd50ToProPhoto(...self.#toXyzd50()), self.alpha),
|
|
2418
2440
|
["rec2020" ]: (self) => new ColorFunction("rec2020" , ...ColorConverter.xyzd50ToRec2020(...self.#toXyzd50()), self.alpha),
|