CARVIEW |
Select Language
HTTP/2 200
date: Wed, 16 Jul 2025 15:26:35 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/adobe/brackets.git
etag: W/"2c43dcf719ea48ce62c4149d945832c3"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=nih%2B%2B8VtzdNAW2p8gWRi0HoV8CMpl0qlCALDau0ZlCuEhDLfJ0NUaRB%2BYqQiZbdQSgQ%2FNINXE2i2rP1Xvb1cmfUSDMCpc%2BCLRnxQlzGrX1ZWCXFB4MSRuYJWq27NdKz1a4qVNTe8%2BPC90EX8Qld3Jg2sCidhe2xPDjqaE2KYrSShx%2FdOZg1tMd2zN7ZNUbfwFbGh22FY7inCwENkWdd37w0uG9srGGP6kkRK%2FngWOq7NoflZeoRmg%2F20OPzDtYmpoKcSecnxB%2FqqQa3l4R2vkw%3D%3D--Fz0W156xpQMWrsjT--blOsUSrY%2Ba%2Bmrr8asznJGg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1345931199.1752679594; Path=/; Domain=github.com; Expires=Thu, 16 Jul 2026 15:26:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 16 Jul 2026 15:26:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CA60:2990DD:DAEB60:1039065:6877C4AA
#7276 Live Preview highlight customization (#12949) · adobe/brackets@0442881 · GitHub
Copy file name to clipboardExpand all lines: src/LiveDevelopment/Agents/RemoteAgent.js
Copy file name to clipboardExpand all lines: src/LiveDevelopment/Agents/RemoteFunctions.js
Copy file name to clipboardExpand all lines: src/LiveDevelopment/main.js
Skip to content
Navigation Menu
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit 0442881
* Live Preview visual customization (colors of highlight can be customized via user preferences)
* PR improvements
Remove trailing spaces, use Object.assign instead of manually iterating over remoteHighlight properties and remove quotes from object properties in default configuration of remoteHighlight
* Allow to animate transform property via transition
* Remove old vendor prefixes from transitionValues in RemoteFunctions.js
* updateConfig RemoteFunctions.js method
Enable injecting new config into remoteFunction when user changed preferences, without the need to restart the live preview session.
* Show margin and paddings in live preview.
* Do not show element if it has width or height equal to 0. A little bit of clean up
* PR improvements
calculateSize is renamed to sum. (better naming conventions are welcome). sum now takes an array as argument. It returns sum of parsed array elements, suffixed with „px”.
* Redraw via requestAnimationFrame if element has transition / animation on it.
* PR improvements.
Set experimental to false by default, if no config specified (caused the test to crash).
Minor code quality improvements, removed duplicated variables.
* Fix ESLINT errors.
* drawMarginRect and drawPaddingRect functions now calculate the require size of highlight elements instead of manaul calculations on each element.
The code is shorter and more readable. Also, it’ll be easier to move drawing functions into separate file if necessary.
* Temporary workaround for transform issue.
* Formatting improvements
1 parent 24e79f7 commit 0442881Copy full SHA for 0442881
File tree
Expand file treeCollapse file tree
3 files changed
+207
-21
lines changedFilter options
- src/LiveDevelopment
- Agents
Expand file treeCollapse file tree
3 files changed
+207
-21
lines changedsrc/LiveDevelopment/Agents/RemoteAgent.js
Copy file name to clipboardExpand all lines: src/LiveDevelopment/Agents/RemoteAgent.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
|
src/LiveDevelopment/Agents/RemoteFunctions.js
Copy file name to clipboardExpand all lines: src/LiveDevelopment/Agents/RemoteFunctions.js+169-20Lines changed: 169 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
37 | 56 |
| |
38 | 57 |
| |
39 | 58 |
| |
| |||
250 | 269 |
| |
251 | 270 |
| |
252 | 271 |
| |
253 |
| - | |
254 | 272 |
| |
255 | 273 |
| |
256 | 274 |
| |
257 |
| - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
258 | 286 |
| |
259 | 287 |
| |
260 | 288 |
| |
261 | 289 |
| |
262 | 290 |
| |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
263 | 347 |
| |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
264 | 413 |
| |
265 | 414 |
| |
266 | 415 |
| |
| |||
275 | 424 |
| |
276 | 425 |
| |
277 | 426 |
| |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
282 | 431 |
| |
283 | 432 |
| |
284 | 433 |
| |
285 | 434 |
| |
286 | 435 |
| |
287 | 436 |
| |
| 437 | + | |
| 438 | + | |
288 | 439 |
| |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
| 440 | + | |
293 | 441 |
| |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
| 442 | + | |
298 | 443 |
| |
299 | 444 |
| |
300 |
| - | |
301 |
| - | |
302 |
| - | |
| 445 | + | |
303 | 446 |
| |
304 | 447 |
| |
305 | 448 |
| |
| |||
311 | 454 |
| |
312 | 455 |
| |
313 | 456 |
| |
314 |
| - | |
| 457 | + | |
315 | 458 |
| |
316 | 459 |
| |
317 | 460 |
| |
| |||
842 | 985 |
| |
843 | 986 |
| |
844 | 987 |
| |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
845 | 993 |
| |
846 | 994 |
| |
847 | 995 |
| |
| |||
894 | 1042 |
| |
895 | 1043 |
| |
896 | 1044 |
| |
897 |
| - | |
| 1045 | + | |
| 1046 | + | |
898 | 1047 |
| |
899 | 1048 |
|
src/LiveDevelopment/main.js
Copy file name to clipboardExpand all lines: src/LiveDevelopment/main.js+37Lines changed: 37 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
82 | 109 |
| |
83 | 110 |
| |
84 | 111 |
| |
| |||
302 | 329 |
| |
303 | 330 |
| |
304 | 331 |
| |
| 332 | + | |
305 | 333 |
| |
306 | 334 |
| |
307 | 335 |
| |
| |||
353 | 381 |
| |
354 | 382 |
| |
355 | 383 |
| |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
356 | 393 |
| |
357 | 394 |
| |
358 | 395 |
| |
|
You can’t perform that action at this time.
0 commit comments