dfs-page-config 0.5.69 → 0.5.70

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.
@@ -124999,7 +124999,7 @@ let setWatermark = (Ff, kh, tAe, oAe, sAe, pAe, hAe, AAe, vAe) => {
124999
124999
  const $Ae = typeof Ff == "string" ? Ff : Ff.toString();
125000
125000
  $Ae.trim() && (OAe = $Ae.trim());
125001
125001
  }
125002
- const PAe = 800, TAe = kh || 300, BAe = 200;
125002
+ const PAe = 400, TAe = kh || 200, BAe = 100;
125003
125003
  if (_Ae.font = `${xAe}px Arial, "Microsoft YaHei", "PingFang SC", sans-serif`, OAe) {
125004
125004
  DAe = _Ae.measureText(OAe).width;
125005
125005
  const $Ae = Math.abs(oAe * Math.PI / 180), nme = Math.cos($Ae) + Math.sin($Ae), KAe = DAe * nme;
@@ -125014,12 +125014,12 @@ let setWatermark = (Ff, kh, tAe, oAe, sAe, pAe, hAe, AAe, vAe) => {
125014
125014
  const FAe = Math.abs(oAe * Math.PI / 180), IAe = Math.cos(FAe) + Math.sin(FAe);
125015
125015
  let LAe;
125016
125016
  if (Array.isArray(Ff) && Ff.length > 1) {
125017
- const $Ae = xAe * 1.2, nme = Ff.length * $Ae + 80;
125018
- LAe = Math.max(tAe || 180, nme);
125017
+ const $Ae = xAe * 1.2, nme = Ff.length * $Ae + 40;
125018
+ LAe = Math.max(tAe || 120, nme);
125019
125019
  } else
125020
- LAe = tAe || 180;
125020
+ LAe = tAe || 120;
125021
125021
  const jAe = LAe * IAe;
125022
- wAe.height = Math.max(LAe, Math.ceil(jAe) + 100);
125022
+ wAe.height = Math.max(LAe, Math.ceil(jAe) + 50);
125023
125023
  let VAe = wAe.getContext("2d");
125024
125024
  VAe.rotate(oAe * Math.PI / 180), VAe.font = `${xAe}px Arial, "Microsoft YaHei", "PingFang SC", sans-serif`, VAe.fillStyle = pAe, VAe.textAlign = hAe, VAe.textBaseline = "middle";
125025
125025
  let UAe = () => {
@@ -125027,10 +125027,10 @@ let setWatermark = (Ff, kh, tAe, oAe, sAe, pAe, hAe, AAe, vAe) => {
125027
125027
  case "center":
125028
125028
  return wAe.width / 2;
125029
125029
  case "right":
125030
- return wAe.width - 100;
125030
+ return wAe.width - 50;
125031
125031
  case "left":
125032
125032
  default:
125033
- return 100;
125033
+ return 50;
125034
125034
  }
125035
125035
  };
125036
125036
  if (Array.isArray(Ff)) {
@@ -125070,11 +125070,11 @@ const watermark = {
125070
125070
  },
125071
125071
  set: ({
125072
125072
  displayText: Ff = "",
125073
- cansWidth: kh = 300,
125074
- cansHeight: tAe = 180,
125073
+ cansWidth: kh = 200,
125074
+ cansHeight: tAe = 120,
125075
125075
  cansRotate: oAe = -15,
125076
125076
  cansFont: sAe = 18,
125077
- cansfillBG: pAe = "rgba(200, 200, 200, 0.20)",
125077
+ cansfillBG: pAe = "rgba(200, 200, 200, 0.2)",
125078
125078
  cansfillTextAlign: hAe = "left",
125079
125079
  uniqueId: AAe = "9876aas54321.123dffd456ass789.9876ga54321",
125080
125080
  domId: vAe = "body"