mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[ts][player] Fixes for default post/prefix.
This commit is contained in:
parent
e5646f0370
commit
9409a772c6
@ -10418,7 +10418,7 @@ var spine;
|
||||
(function (spine) {
|
||||
var SpinePlayerEditor = (function () {
|
||||
function SpinePlayerEditor(parent) {
|
||||
this.prefix = "<html>\n<body>".trim();
|
||||
this.prefix = "<html>\n<head>\n<style>\nbody {\n\tmargin: 0px;\n}\n</style>\n</head>\n<body>".trim();
|
||||
this.postfix = "</body>";
|
||||
this.render(parent);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -19,6 +19,13 @@ new spine.SpinePlayer("player-container", {
|
||||
|
||||
private prefix: string =
|
||||
`<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>`.trim()
|
||||
private postfix: string = `</body>`;
|
||||
private code: any;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user