排版功能

This commit is contained in:
2026-03-04 17:56:06 +08:00
parent 88e50525bd
commit bbd761508e
2 changed files with 238 additions and 69 deletions

View File

@@ -19,6 +19,10 @@ public class TabletElement
public double? height { get; set; }
public ElementStyle style { get; set; }
public string hidden { get; set; }
public double? twoOffset { get; set; }
public double? threeOffset { get; set; }
public double? fourOffset { get; set; }
public int? breakLen { get; set; }
}
public class ElementStyle
@@ -52,20 +56,34 @@ public partial class admin_item_TabletDesigner :MyWeb.config
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5,visibility="" }
},
new TabletElement {
id = "title1", type = "ancestor", text = "氏歷代祖先", x = 130, y = 80,
id = "title1", type = "ancestor", text = "牌位正名", x = 130, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
},
new TabletElement {
id = "titletriangle", type = "roster", text = "張一\n李二\n陳三", x = 130, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5,visibility="hidden" }
id = "lefttitle", type = "ancestor", text = "左正名", x = 10, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
},
new TabletElement {
id = "righttitle", type = "ancestor", text = "右正名", x = 50, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
},
new TabletElement {
id = "titletriangle", type = "roster", text = "張一\n李二\n陳三\n吳四\n劉五\n趙六\n林七\n徐八", x = 10, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5,visibility="" }
},
new TabletElement
{
id="combined",type="combined-center",text="林張吳\n氏歷代祖先", x = 130, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="hidden" }
}, new TabletElement
id="tricombined",type="combined-center",text="林張吳\n氏歷代祖先", x = 10, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
},
new TabletElement
{
id="alive",type="alive",text="劉大哥", x = 60, y = 200,
id="combined",type="combined-center",text="李王\n氏歷代祖先", x = 10, y = 80,
style = new ElementStyle { fontSize = 24, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
},
new TabletElement
{
id="alive",type="alive",text="陽上名字", x = 60, y = 200,
style = new ElementStyle { fontSize = 18, fontFamily = "Kaiti", isVertical = true, letterSpacing = 5, lineHeight = 1.5 ,visibility="" }
}
},