도형(SVG)을 삽입하고 편집 할 수 있는 플러그인입니다.
사용방법
플러그인 파일 불러오기
Info |
---|
사이냅에디터의 shapeEditor플러그인 사용시 SEShapeManager모듈을 필수로 include 하셔야 합니다. |
Code Block |
---|
|
<!-- ShapEditor plugin include -->
<script src="plugins/shapeEditor/shapeEditor.min.js"></script>
<link rel="stylesheet" href="plugins/shapeEditor/shapeEditor.min.css">
<!-- SEShapeManager module include -->
<script src="externals/SEShapeManager/SEShapeManager.min.js"></script> |
UI
플러그인 이름인 'shapeEditor'을 사용하여 툴바 영역, 메뉴 영역에 버튼을 추가할 수 있습니다.
툴바에 추가
Code Block |
---|
language | js |
---|
theme | Emacs |
---|
title | 에디터 설정 |
---|
|
//...
'editor.toolbar': [
//...,
'shapeEditor',
//...
],
// ... |