-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.12.0リリースに関するリファクタリング #403
Comments
属性監視はAttribute.addObserverではダメですか? |
内部に関して漢壁には把握していないですが、 |
@moajo それはまずAttributeがすでに定義されている状態でないととれないのでは? |
監視しようとしてる属性が存在しない状況がある? |
あり得る。マテリアルとかの値なら。 |
getAttributeしてしまったじてんでAttributeをつくってしまうのはどうでしょう |
typoによるバグが多発しそうだから嫌 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
リファクタリング
インターフェース系の定義の簡略化(非破壊的)
現在、ファンクションかつオブジェクトな型を生成するために以下の3つを使っているがこれを解決する。
↓
今まで
これから
これにより、インターフェースを構成していたファイルをそれぞれ3つから1つに集約できるはず。
また、クラスには定義されているがインターフェース側への定義忘れでアクセスできないというような状況を修正する。
getAttribute/getValueなどの名前の統一(破壊的変更)
現状
次期
統一したい。
議論中
ComponentInterfaceの削除(破壊的変更)
いらないぽい
ComponentのAttributeDeclaration(破壊的変更)
現状
次期
Attributeのundefinedの扱い(破壊的変更)
新機能
インターフェース側からのattributeの変更の監視
提案内容
Attribute#addObserverをAttribute#watchにリネーム(破壊的変更)
Attribute.convert
特定のコンバーター名で変換するAPIを追加する。
指定したコンバーターが存在しなかった場合は例外
ガイドライン系
コンバーターのガイドライン
default
及びconverter
でもないもの)に不正があった場合のみ投げても良いRleated PRs
#408
GrimoireGL/grimoire.gl-example#1
GrimoireGL/grimoirejs-fundamental#7
GrimoireGL/grimoirejs-gltf#2
GrimoireGL/grimoirejs-preset-basic#1
The text was updated successfully, but these errors were encountered: