Skip to content

Conversation

rrbox
Copy link
Owner

@rrbox rrbox commented Dec 24, 2022

Attribute が一新されます。

旧 API

let attribute = [.fontName: "times", .fontSize: 32]
  • 辞書型
  • Value は Any 型 (コード補完が効かない)

新 API

let attribute = .fontName("times").fontSize(32)
  • indirect 列挙体
  • Value は静的 (コード補完が効く)

rrbox added 23 commits December 22, 2022 23:47
に変換するメソッドを追加しました.
Attribute の利用範囲を広げるための準備です
Builder に置き換わった場合, TsumijiTests と置き換わります.
@rrbox rrbox mentioned this pull request Dec 24, 2022
@rrbox rrbox merged commit 344324e into develop Dec 24, 2022
@rrbox rrbox deleted the feat/builder-attribute branch December 24, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant