Comments (5)
모듈 하나에 거대한 공용의 자료 공유 형태가 필요한데.
- $store - 이벤트 정의 , 메세지 전달용
- $editor - 글로벌 데이타 정의용
from easylogic.studio.
외부 주입 모듈 만들기
export default {
command: 'setAttribute',
title: 'Set Attribute for Item',
description: '',
execute (editor, a, b, c ) {
editor.emit('refresh', a, b, c);
}
}
// shortcuts
export default [
{ key: 'cmd+m', command: `setAttribute`},
{ key: 'cmd+m', command: `setAttribute`},
{ key: 'cmd+m', command: `setAttribute`},
{ key: 'cmd+m', command: `setAttribute`},
{ key: 'cmd+m', command: `setAttribute`},
]
editor.commands.registerCommand('name', command.execute)
editor.components.registerComponent('name', CubeLayer);
editor.shortcuts.registerShortcut({
key: 'cmd+m',
when: 'textInputFocus', // 상태 정의가 필요하군요. vscode 를 참고해봅시다.
command : `command's name`
});
from easylogic.studio.
- 단축키 설계 하기
from easylogic.studio.
이걸 사전에 정의할려면 render 시점을 뒤로 할 수 있도록 해야겠군.
from easylogic.studio.
이건 안하는걸로 하자.
에디터를 하나의 단위로 만들지 않으면 인터랙션을 제어하기도 힘들고
store 를 제어하기도 힘들다.
그냥 화면 하나 단위로 하자.
from easylogic.studio.
Related Issues (20)
- support to move to front, back
- modify lock status for layer
- 오브젝트 간의 간격을 볼 수 있으면 좋겠습니다. HOT 6
- implement custom layout
- implement outline view mode HOT 1
- support monaco editor HOT 2
- support style copy HOT 3
- support color-set feature
- Update custom component document HOT 1
- support eyedropper
- support react layer renderer
- support shape-outside style
- support element, layer copy/paste HOT 1
- support group elements (command + g) HOT 1
- support google fonts HOT 2
- support three editor
- support dynamic menu system
- support grid layout editor
- Q: How can I use editor HOT 2
- shiki:vscode is not defined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easylogic.studio.