@lls/typings 24.1.31-dcd4474c → 24.1.31-ea709f67
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/internal/page.d.ts +7 -9
- package/package.json +1 -1
package/internal/page.d.ts
CHANGED
|
@@ -4,18 +4,13 @@ export type ScreenMode = 'grid-xs' | 'grid-md'
|
|
|
4
4
|
|
|
5
5
|
export type SubzoneTypeCategory = 'picWord' | 'definition' | 'subZone'
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type ZoneType = {
|
|
8
|
+
id: string
|
|
8
9
|
x: number
|
|
9
10
|
y: number
|
|
10
11
|
w: number
|
|
11
12
|
h: number
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
export type ZoneType = {
|
|
15
|
-
id: string
|
|
16
|
-
src?: string
|
|
17
|
-
} & Rect
|
|
18
|
-
|
|
19
14
|
export type ZoomZoneType = ZoneType & { type: Extract<SubzoneTypeCategory, 'subZone'> }
|
|
20
15
|
export type DefinitionsType = ZoneType & { type: Extract<SubzoneTypeCategory, 'definition'> }
|
|
21
16
|
export type PicWordType = ZoneType & { type: Extract<SubzoneTypeCategory, 'picWord'>; word?: string }
|
|
@@ -82,7 +77,11 @@ export type LayoutCell = {
|
|
|
82
77
|
|
|
83
78
|
export type PrimaryLayoutItem = {
|
|
84
79
|
id: string
|
|
85
|
-
|
|
80
|
+
x: number
|
|
81
|
+
y: number
|
|
82
|
+
w: number
|
|
83
|
+
h: number
|
|
84
|
+
}
|
|
86
85
|
|
|
87
86
|
export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
88
87
|
id?: number
|
|
@@ -120,7 +119,6 @@ export type Page<T extends 'primary' | 'default' = 'default'> = {
|
|
|
120
119
|
metadata?: TODO | null
|
|
121
120
|
} & (T extends 'primary'
|
|
122
121
|
? {
|
|
123
|
-
picture?: string
|
|
124
122
|
children?: PrimaryDoc[]
|
|
125
123
|
layouts?: {
|
|
126
124
|
primary?: PrimaryLayoutItem[]
|