0.0.0.4
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
declare module 'dom-to-image-more' {
|
||||
export interface Options {
|
||||
quality?: number
|
||||
width?: number
|
||||
height?: number
|
||||
style?: Record<string, string>
|
||||
bgcolor?: string
|
||||
filter?: (node: Node) => boolean
|
||||
}
|
||||
|
||||
export function toPng(node: Node, options?: Options): Promise<string>
|
||||
export function toJpeg(node: Node, options?: Options): Promise<string>
|
||||
export function toBlob(node: Node, options?: Options): Promise<Blob>
|
||||
export function toPixelData(node: Node, options?: Options): Promise<Uint8ClampedArray>
|
||||
export function toSvg(node: Node, options?: Options): Promise<string>
|
||||
}
|
||||
@@ -1,6 +1,16 @@
|
||||
export type Gender = "male" | "female" | "other"
|
||||
export type LifeStatus = "living" | "deceased" | "unknown"
|
||||
|
||||
export interface FamilyStory {
|
||||
id: string
|
||||
title: string
|
||||
content: string
|
||||
date?: string
|
||||
imageIds?: string[]
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export interface FamilyMember {
|
||||
id: string
|
||||
|
||||
@@ -29,6 +39,12 @@ export interface FamilyMember {
|
||||
birthPlace?: string
|
||||
burialPlace?: string // 墓地 (for deceased)
|
||||
|
||||
// Contact Information
|
||||
phone?: string // 手机号
|
||||
telephone?: string // 固定电话
|
||||
email?: string // 邮箱
|
||||
address?: string // 现居地址
|
||||
|
||||
// Relationships (Adjacency List style)
|
||||
fatherId?: string
|
||||
motherId?: string
|
||||
@@ -40,6 +56,8 @@ export interface FamilyMember {
|
||||
tags?: string[] // e.g., "Famous", "Official", "Scholar"
|
||||
avatarUrl?: string
|
||||
avatarImageId?: string // ID referencing the 'images' table in Dexie
|
||||
photoIds?: string[] // 照片墙 - 多张照片的 ID 数组
|
||||
stories?: FamilyStory[] // 家族故事
|
||||
|
||||
// Metadata
|
||||
createdAt: string
|
||||
|
||||
Reference in New Issue
Block a user