@prose-reader/core 1.189.0 → 1.190.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/dist/enhancers/layoutEnhancer/layoutEnhancer.d.ts +1 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +29 -29
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.umd.cjs
CHANGED
|
@@ -2040,6 +2040,35 @@
|
|
|
2040
2040
|
});
|
|
2041
2041
|
return reader;
|
|
2042
2042
|
};
|
|
2043
|
+
function isDefined(arg) {
|
|
2044
|
+
return arg !== null && arg !== void 0;
|
|
2045
|
+
}
|
|
2046
|
+
let SettingsManager$1 = class SettingsManager extends SettingsManagerOverload {
|
|
2047
|
+
computeOutputSettings(inputSettings) {
|
|
2048
|
+
return inputSettings;
|
|
2049
|
+
}
|
|
2050
|
+
hasSettingsChanged(newOutputSettings) {
|
|
2051
|
+
return !shared.isShallowEqual(this.outputSettings, newOutputSettings);
|
|
2052
|
+
}
|
|
2053
|
+
getCleanedParentInputSettings(settings) {
|
|
2054
|
+
const {
|
|
2055
|
+
layoutAutoResize,
|
|
2056
|
+
pageHorizontalMargin,
|
|
2057
|
+
pageVerticalMargin,
|
|
2058
|
+
layoutLayerTransition,
|
|
2059
|
+
...rest
|
|
2060
|
+
} = settings;
|
|
2061
|
+
return rest;
|
|
2062
|
+
}
|
|
2063
|
+
getDefaultSettings() {
|
|
2064
|
+
return {
|
|
2065
|
+
layoutAutoResize: "container",
|
|
2066
|
+
pageHorizontalMargin: 24,
|
|
2067
|
+
pageVerticalMargin: 24,
|
|
2068
|
+
layoutLayerTransition: true
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2043
2072
|
const createMovingSafePan$ = (reader) => {
|
|
2044
2073
|
let iframeOverlayForAnimationsElement;
|
|
2045
2074
|
const updateOverlayElement$ = reader.context.state$.pipe(
|
|
@@ -2118,35 +2147,6 @@
|
|
|
2118
2147
|
}
|
|
2119
2148
|
);
|
|
2120
2149
|
};
|
|
2121
|
-
function isDefined(arg) {
|
|
2122
|
-
return arg !== null && arg !== void 0;
|
|
2123
|
-
}
|
|
2124
|
-
let SettingsManager$1 = class SettingsManager extends SettingsManagerOverload {
|
|
2125
|
-
computeOutputSettings(inputSettings) {
|
|
2126
|
-
return inputSettings;
|
|
2127
|
-
}
|
|
2128
|
-
hasSettingsChanged(newOutputSettings) {
|
|
2129
|
-
return !shared.isShallowEqual(this.outputSettings, newOutputSettings);
|
|
2130
|
-
}
|
|
2131
|
-
getCleanedParentInputSettings(settings) {
|
|
2132
|
-
const {
|
|
2133
|
-
layoutAutoResize,
|
|
2134
|
-
pageHorizontalMargin,
|
|
2135
|
-
pageVerticalMargin,
|
|
2136
|
-
layoutLayerTransition,
|
|
2137
|
-
...rest
|
|
2138
|
-
} = settings;
|
|
2139
|
-
return rest;
|
|
2140
|
-
}
|
|
2141
|
-
getDefaultSettings() {
|
|
2142
|
-
return {
|
|
2143
|
-
layoutAutoResize: "container",
|
|
2144
|
-
pageHorizontalMargin: 24,
|
|
2145
|
-
pageVerticalMargin: 24,
|
|
2146
|
-
layoutLayerTransition: true
|
|
2147
|
-
};
|
|
2148
|
-
}
|
|
2149
|
-
};
|
|
2150
2150
|
const layoutEnhancer = (next) => (options) => {
|
|
2151
2151
|
const {
|
|
2152
2152
|
pageHorizontalMargin,
|