This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit 16741ff
Release Manager
Trac #30612: Set title of HTML page with Three.js viewer
When having several browser windows/tabs open with Three.js plots in
them, it can be difficult to remember which is which. Since the `title`
element in the generated pages is empty, the filename/path is displayed
in !Chrome/FireFox, and something like `tmp_e0or9kcy.html` isn't very
helpful.
This ticket proposes a new `page_title` viewer option to set the title
of the HTML page. Additionally, the page title should be used to suggest
a filename when using the "Save as HTML" menu item instead of the
generic `graphic.html`.
For example:
{{{
show(dodecahedron(), page_title="Dodecahedron")
}}}
...should produce a page titled "Dodecahedron" that suggests the
filename `Dodecahedron.html` upon saving.
URL: https://trac.sagemath.org/30612
Reported by: gh-jcamp0x2a
Ticket author(s): Joshua Campbell
Reviewer(s): Eric GourgoulhonFile tree
3 files changed
+30
-2
lines changed- src
- doc/en/reference/plot3d
- sage
- ext_data/threejs
- plot/plot3d
3 files changed
+30
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
475 | 485 | | |
476 | 486 | | |
477 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
401 | 408 | | |
402 | 409 | | |
403 | 410 | | |
| |||
490 | 497 | | |
491 | 498 | | |
492 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
493 | 508 | | |
494 | 509 | | |
495 | 510 | | |
| |||
0 commit comments