@vivliostyle/core 2.14.4 → 2.15.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/lib/vivliostyle/assets.d.ts +4 -4
- package/lib/vivliostyle/css-page.d.ts +1 -0
- package/lib/vivliostyle/scripts.d.ts +0 -18
- package/lib/vivliostyle.js +1 -1
- package/lib/vivliostyle.js.map +1 -1
- package/package.json +2 -2
- package/resources/vivliostyle-viewport-screen.css +0 -93
- package/resources/vivliostyle-viewport.css +0 -111
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivliostyle/core",
|
|
3
3
|
"description": "Vivliostyle Core library for HTML+CSS typesetting with EPUB/Web publications support",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.15.0",
|
|
5
5
|
"author": "Vivliostyle Foundation",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "microbundle --format cjs --define VIVLIOSTYLE_DEBUG=false",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=12"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "63c5dd0842b62ed2f3cb121ecd024b01ff526981"
|
|
59
59
|
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2017 Trim-marks Inc.
|
|
3
|
-
*
|
|
4
|
-
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
5
|
-
* it under the terms of the GNU Affero General Public License as published by
|
|
6
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
-
* (at your option) any later version.
|
|
8
|
-
*
|
|
9
|
-
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
@media screen {
|
|
20
|
-
[data-vivliostyle-viewer-viewport] {
|
|
21
|
-
background: #aaaaaa;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[data-vivliostyle-page-container] {
|
|
25
|
-
background: white;
|
|
26
|
-
z-index: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[data-vivliostyle-viewer-viewport] {
|
|
30
|
-
display: -webkit-flex;
|
|
31
|
-
display: flex;
|
|
32
|
-
overflow: auto;
|
|
33
|
-
position: relative;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[data-vivliostyle-outer-zoom-box] {
|
|
37
|
-
margin: auto;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
-webkit-flex: none;
|
|
40
|
-
flex: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
[data-vivliostyle-viewer-viewport] [data-vivliostyle-spread-container] {
|
|
44
|
-
display: -webkit-flex;
|
|
45
|
-
display: flex;
|
|
46
|
-
-webkit-flex: none;
|
|
47
|
-
flex: none;
|
|
48
|
-
-webkit-justify-content: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
-moz-transform-origin: left top;
|
|
51
|
-
-ms-transform-origin: left top;
|
|
52
|
-
-webkit-transform-origin: left top;
|
|
53
|
-
transform-origin: left top;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[data-vivliostyle-viewer-viewport][data-vivliostyle-page-progression="ltr"]
|
|
57
|
-
[data-vivliostyle-spread-container] {
|
|
58
|
-
-webkit-flex-direction: row;
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
[data-vivliostyle-viewer-viewport][data-vivliostyle-page-progression="rtl"]
|
|
63
|
-
[data-vivliostyle-spread-container] {
|
|
64
|
-
-webkit-flex-direction: row-reverse;
|
|
65
|
-
flex-direction: row-reverse;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[data-vivliostyle-viewer-viewport] [data-vivliostyle-page-container] {
|
|
69
|
-
margin: 0 auto;
|
|
70
|
-
-webkit-flex: none;
|
|
71
|
-
flex: none;
|
|
72
|
-
transform-origin: center top;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
[data-vivliostyle-viewer-viewport][data-vivliostyle-spread-view="true"]
|
|
76
|
-
[data-vivliostyle-page-container][data-vivliostyle-page-side="left"] {
|
|
77
|
-
margin-right: 1px;
|
|
78
|
-
transform-origin: right top;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[data-vivliostyle-viewer-viewport][data-vivliostyle-spread-view="true"]
|
|
82
|
-
[data-vivliostyle-page-container][data-vivliostyle-page-side="right"] {
|
|
83
|
-
margin-left: 1px;
|
|
84
|
-
transform-origin: left top;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
[data-vivliostyle-viewer-viewport][data-vivliostyle-spread-view="true"]
|
|
88
|
-
[data-vivliostyle-page-container][data-vivliostyle-unpaired-page="true"] {
|
|
89
|
-
margin-left: auto;
|
|
90
|
-
margin-right: auto;
|
|
91
|
-
transform-origin: center top;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015 Trim-marks Inc.
|
|
3
|
-
* Copyright 2019 Vivliostyle Foundation
|
|
4
|
-
*
|
|
5
|
-
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU Affero General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU Affero General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
-
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
[data-vivliostyle-layout-box] {
|
|
21
|
-
position: absolute;
|
|
22
|
-
left: 0;
|
|
23
|
-
top: 0;
|
|
24
|
-
right: 0;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
z-index: -1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[data-vivliostyle-debug] [data-vivliostyle-layout-box] {
|
|
31
|
-
right: auto;
|
|
32
|
-
bottom: auto;
|
|
33
|
-
overflow: visible;
|
|
34
|
-
z-index: auto;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[data-vivliostyle-page-container] {
|
|
38
|
-
position: relative;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[data-vivliostyle-bleed-box] {
|
|
43
|
-
position: absolute;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
max-width: 100%;
|
|
46
|
-
max-height: 100%;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[data-vivliostyle-page-box] ~ [data-vivliostyle-page-box] {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
[data-vivliostyle-toc-box] {
|
|
55
|
-
position: absolute;
|
|
56
|
-
left: 3px;
|
|
57
|
-
top: 3px;
|
|
58
|
-
overflow: scroll;
|
|
59
|
-
overflow-x: hidden;
|
|
60
|
-
background: rgba(248, 248, 248, 0.9);
|
|
61
|
-
border-radius: 2px;
|
|
62
|
-
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media print {
|
|
66
|
-
[data-vivliostyle-toc-box] {
|
|
67
|
-
display: none;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
[data-vivliostyle-outer-zoom-box],
|
|
71
|
-
[data-vivliostyle-spread-container] {
|
|
72
|
-
width: 100% !important;
|
|
73
|
-
height: 100% !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
[data-vivliostyle-spread-container],
|
|
77
|
-
[data-vivliostyle-page-container] {
|
|
78
|
-
-moz-transform: none !important;
|
|
79
|
-
-ms-transform: none !important;
|
|
80
|
-
-webkit-transform: none !important;
|
|
81
|
-
transform: none !important;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[data-vivliostyle-page-container] {
|
|
85
|
-
display: block !important;
|
|
86
|
-
max-width: 100%;
|
|
87
|
-
height: 100% !important;
|
|
88
|
-
max-height: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* Workaround for Chrome printing problem */
|
|
92
|
-
/* [data-vivliostyle-page-box] {
|
|
93
|
-
padding-bottom: 0 !important;
|
|
94
|
-
overflow: visible !important;
|
|
95
|
-
} */
|
|
96
|
-
[data-vivliostyle-bleed-box] > div > div::before {
|
|
97
|
-
display: block;
|
|
98
|
-
content: "";
|
|
99
|
-
padding-top: 0.015625px;
|
|
100
|
-
margin-bottom: -0.015625px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* Gecko-only hack, see https://bugzilla.mozilla.org/show_bug.cgi?id=267029#c17 */
|
|
104
|
-
@-moz-document regexp('.*') {
|
|
105
|
-
[data-vivliostyle-page-container]:nth-last-child(n + 2) {
|
|
106
|
-
top: -1px;
|
|
107
|
-
margin-top: 1px;
|
|
108
|
-
margin-bottom: -1px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|