We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
#28 Custom Controllers
545df10
create 또는 action 하나만 작성 가능.
create 는 주어진 shape 으로 원하는 선 연결 후 새로 생성된다.
shape.controllers = [ { image: 'annotation.png', create: { shape: 'OG.CircleShape', width: 100, height: 100, style: {} } action: function (element) { console.log(element); } } ]
create 모드로 생성되었을 때는 후처리로 다음을 이용한다.
/** * * @param {Function} callbackFunc 콜백함수(event, sourceElement, targetElement) */ onDuplicated: function (callbackFunc) { $(this.getRootElement()).bind('duplicated', function (event, sourceElement, targetElement) { callbackFunc(event, sourceElement, targetElement); }); },
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: