@opensig/opendesign
Version:
54 lines (53 loc) • 1.58 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const vue = require("vue");
const helper = require("./helper.js");
const defaultZIndex = vue.ref(1e3);
function initZIndex(val) {
defaultZIndex.value = val;
}
const defaultSize = vue.ref("medium");
function initSize(val) {
defaultSize.value = val;
}
const defaultRound = vue.ref();
function initRound(type) {
defaultRound.value = type;
}
const defaultPrestColor = ["#d9e6c3", "#ebd5be", "#d1e6de", "#e0ceeb", "#ebd3c7", "#e6dada", "#e3deeb", "#dedae6", "#cad0e8", "#cedeeb"];
const defaultPrestColorPool = vue.ref(new helper.ColorPool(defaultPrestColor));
function initPrestColor(colors) {
defaultPrestColorPool.value = new helper.ColorPool(colors);
}
const Breakpoints = {
Phone: "phone",
PadV: "pad_v",
PadH: "pad_h",
Laptop: "laptop",
Pc: "pc"
};
const mediaPoint = vue.ref({
[Breakpoints.Phone]: 600,
[Breakpoints.PadV]: 840,
/**
* @deprecated use padH
*/
pad: 1200,
[Breakpoints.PadH]: 1200,
[Breakpoints.Laptop]: 1680,
[Breakpoints.Pc]: 1920
});
function initMediaPoint(point) {
mediaPoint.value = { ...mediaPoint.value, ...point };
}
exports.Breakpoints = Breakpoints;
exports.defaultPrestColorPool = defaultPrestColorPool;
exports.defaultRound = defaultRound;
exports.defaultSize = defaultSize;
exports.defaultZIndex = defaultZIndex;
exports.initMediaPoint = initMediaPoint;
exports.initPrestColor = initPrestColor;
exports.initRound = initRound;
exports.initSize = initSize;
exports.initZIndex = initZIndex;
exports.mediaPoint = mediaPoint;