GithubHelp home page GithubHelp logo

Comments (5)

easylogic avatar easylogic commented on June 19, 2024

모듈 하나에 거대한 공용의 자료 공유 형태가 필요한데.

  1. $store - 이벤트 정의 , 메세지 전달용
  2. $editor - 글로벌 데이타 정의용

from easylogic.studio.

easylogic avatar easylogic commented on June 19, 2024

외부 주입 모듈 만들기

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.

easylogic avatar easylogic commented on June 19, 2024
  • 단축키 설계 하기

from easylogic.studio.

easylogic avatar easylogic commented on June 19, 2024

이걸 사전에 정의할려면 render 시점을 뒤로 할 수 있도록 해야겠군.

from easylogic.studio.

easylogic avatar easylogic commented on June 19, 2024

이건 안하는걸로 하자.

에디터를 하나의 단위로 만들지 않으면 인터랙션을 제어하기도 힘들고

store 를 제어하기도 힘들다.

그냥 화면 하나 단위로 하자.

from easylogic.studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.