vuepress-theme-ccds-test
Version:
This is an anime blog theme based on vuepress, the theme is simple, colorful, versatile, and supports customization, providing multiple components to set the theme
19 lines (18 loc) • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveMediumZoomPluginOptions = void 0;
/**
* Resolve options for @vuepress/plugin-medium-zoom
*/
const resolveMediumZoomPluginOptions = (themePlugins) => {
if ((themePlugins === null || themePlugins === void 0 ? void 0 : themePlugins.mediumZoom) === false) {
return false;
}
return {
selector: '.theme-default-content > img, .theme-default-content :not(a) > img',
zoomOptions: {},
// should greater than page transition duration
delay: 400,
};
};
exports.resolveMediumZoomPluginOptions = resolveMediumZoomPluginOptions;