@hufe921/canvas-editor 0.9.133 → 0.9.134

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.
@@ -16,6 +16,20 @@ export interface IDatePickerLang {
16
16
  };
17
17
  year: string;
18
18
  month: string;
19
+ months: {
20
+ jan: string;
21
+ feb: string;
22
+ mar: string;
23
+ apr: string;
24
+ may: string;
25
+ jun: string;
26
+ jul: string;
27
+ aug: string;
28
+ sep: string;
29
+ oct: string;
30
+ nov: string;
31
+ dec: string;
32
+ };
19
33
  hour: string;
20
34
  minute: string;
21
35
  second: string;
@@ -37,15 +51,24 @@ export declare class DatePicker {
37
51
  private isDatePicker;
38
52
  private pickDate;
39
53
  private lang;
54
+ private datePickerType;
55
+ private viewMode;
56
+ private yearPageStart;
40
57
  constructor(draw: Draw, options?: IDatePickerOption);
41
58
  private _createDom;
42
59
  private _bindEvent;
43
60
  private _setPosition;
44
61
  isInvalidDate(value: Date): boolean;
45
62
  private _setValue;
63
+ private _getDatePickerType;
46
64
  private _getLang;
47
65
  private _setLangChange;
48
66
  private _update;
67
+ private _updateTitleVisibility;
68
+ private _updateDateView;
69
+ private _updateYearView;
70
+ private _updateMonthView;
71
+ private _switchView;
49
72
  private _toggleDateTimePicker;
50
73
  private _setDatePick;
51
74
  private _setTimePick;
@@ -53,6 +76,8 @@ export declare class DatePicker {
53
76
  private _nextMonth;
54
77
  private _preYear;
55
78
  private _nextYear;
79
+ private _preYearPage;
80
+ private _nextYearPage;
56
81
  private _now;
57
82
  private _toggleVisible;
58
83
  private _submit;
@@ -20,6 +20,11 @@ export declare class Position {
20
20
  getSelectionPositionList(): IElementPosition[] | null;
21
21
  setPositionList(payload: IElementPosition[]): void;
22
22
  setFloatPositionList(payload: IFloatPosition[]): void;
23
+ getFloatPositionByElement(element: IElement): IFloatPosition | null;
24
+ getFloatPositionCoordinate(floatPosition: IFloatPosition): {
25
+ x: number;
26
+ y: number;
27
+ };
23
28
  computePageRowPosition(payload: IComputePageRowPositionPayload): IComputePageRowPositionResult;
24
29
  computePositionList(): void;
25
30
  computeRowPosition(payload: IComputeRowPositionPayload): IElementPosition[];
@@ -0,0 +1,5 @@
1
+ export declare enum DatePickerMode {
2
+ DATE = "date",
3
+ MONTH = "month",
4
+ YEAR = "year"
5
+ }
@@ -132,6 +132,7 @@ export interface IPrintModeRule {
132
132
  imagePreviewerDisabled?: boolean;
133
133
  backgroundDisabled?: boolean;
134
134
  filterEmptyControl?: boolean;
135
+ filterHideElementRow?: boolean;
135
136
  }
136
137
  export interface IReadonlyModeRule {
137
138
  imagePreviewerDisabled?: boolean;
@@ -71,6 +71,7 @@ export interface IComputePageRowPositionPayload {
71
71
  trIndex?: number;
72
72
  tdValueIndex?: number;
73
73
  zone?: EditorZone;
74
+ tablePosition?: IElementPosition;
74
75
  }
75
76
  export interface IComputePageRowPositionResult {
76
77
  x: number;
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "@hufe921/canvas-editor",
3
3
  "author": "Hufe",
4
4
  "license": "MIT",
5
- "version": "0.9.133",
6
- "description": "rich text editor by canvas/svg",
5
+ "version": "0.9.134",
6
+ "description": "A Canvas/SVG-based rich text editor",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",
9
9
  "access": "public"
@@ -50,27 +50,27 @@
50
50
  "devDependencies": {
51
51
  "@eslint/js": "^10.0.1",
52
52
  "@rollup/plugin-typescript": "^12.3.0",
53
- "@types/jsdom": "^28.0.1",
54
- "@types/node": "^24.0.0",
53
+ "@types/jsdom": "^28.0.3",
54
+ "@types/node": "^24.12.4",
55
55
  "@types/prismjs": "^1.26.6",
56
- "@typescript-eslint/eslint-plugin": "^8.59.1",
57
- "@typescript-eslint/parser": "^8.59.1",
58
- "@vitest/coverage-v8": "^4.1.5",
59
- "cypress": "^15.14.2",
56
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
57
+ "@typescript-eslint/parser": "^8.59.3",
58
+ "@vitest/coverage-v8": "^4.1.6",
59
+ "cypress": "^15.15.0",
60
60
  "cypress-file-upload": "^5.0.8",
61
- "eslint": "^10.3.0",
61
+ "eslint": "^10.4.0",
62
62
  "globals": "^17.6.0",
63
63
  "jsdom": "^29.1.1",
64
64
  "simple-git-hooks": "^2.13.1",
65
65
  "tslib": "^2.8.1",
66
66
  "typescript": "^6.0.3",
67
- "typescript-eslint": "^8.59.1",
68
- "vite": "^8.0.10",
67
+ "typescript-eslint": "^8.59.3",
68
+ "vite": "^8.0.13",
69
69
  "vite-plugin-css-injected-by-js": "^5.0.1",
70
70
  "vitepress": "^1.6.4",
71
- "vitest": "^4.1.5",
71
+ "vitest": "^4.1.6",
72
72
  "vitest-canvas-mock": "^1.1.4",
73
- "vue": "^3.5.33"
73
+ "vue": "^3.5.34"
74
74
  },
75
75
  "simple-git-hooks": {
76
76
  "pre-commit": "npm run lint && npm run type:check",