Skip to content

역할, 주체를 명확히 하여 요소를 생성, 변경 가능하게 함수 설계 #2

@pikpokjeon

Description

@pikpokjeon

개별 다중 속성을 한 요소에 업데이트 하기 위해서 아래와 같은 방법을 사용하고 있다.

updateAttr($.initSVG["left"], { x1: -1, x2: -1 });
updateAttr($.initSVG["right"], { x1: -1, x2: -1 });

하지만 위의 예시를 보면 다중 요소에 같은 속성을 변경하기 때문에
주체인 요소를 중심으로 한번의 속성을 부여하여 변경 가능하도록 설계하는 것이
가독성이 좋다.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions