Comments (4)
Ah, I should note that I've tried this both with english and with korean language.
from entryjs.
Actually entryjs does not save an image. see below code (from src/painter.js)
Entry.Painter.prototype.file_save = function(saveChanges) {
this.clearHandle();
this.transparent();
this.trim();
var canvasImage = this.canvas_.toDataURL();
Entry.dispatchEvent('saveCanvasImage', {
file: (saveChanges ? this.file_ : this.file),
image: canvasImage
});
this.file.modified = false;
};
As see above, entryjs's painter does just dispatch "saveCanvasImage" event with DataURL.
So, you have to implement rest of things like this.
Entry.addEventListener('saveCanvasImage', saveImage);
...
function saveImage(dataURL) {
var formData = new FormData();
formData.append("data", dataURL.image);
$.ajax({
url: '/api/for/saving/image'
data: formData,
type: post,
....
}
good luck!
from entryjs.
Ah! That is good to know. But the more important thing is that I cannot Add new object to the project. This should work, right?
It would be good if I can fix all these things, so that I can publish a small reference project that uses entryjs. This way it will be easier for others to get started, too.
from entryjs.
I think entry-offline is good reference project for you. It is electron based offline version of Entry.
It implements most of Entry workspace functions.
Look into the app/src/workspace.js. I think 624 to 690 lines might be help you.
Have fun~
from entryjs.
Related Issues (20)
- 함수관련 추가 기능의 commit list 확인
- 함수 속성관련 다국어 설정 미반영
- 이미지 HOT 1
- 지역변수, 리턴값 갖는 함수 생성하여 블록코딩 후 파이썬 코드로 변환 안되는 문제 HOT 1
- Can I create the english version of the Readme File. HOT 4
- [Feature Requset] 오브젝트 선택창에서 오브젝트 위로 마우스 올리면, 그 객체가 모양을 여러개 갖는 거라면 애니메이션으로 보이기
- 엔트리파이썬/블럭 코딩 함수 내 블럭 변환 문제
- yarn serve 에러입니다. HOT 2
- 리스트 상에 값을 제거하였으나 실제로 제거되지 않고 남아있는 문제 HOT 1
- [하드웨어] 마이크로비트 통신 관련 오류 HOT 1
- yarn serve 이후 오류 HOT 1
- 함수 블럭에서 메모리 누수 발생 HOT 1
- 채우기 블록 오작동 HOT 1
- 불필요한 async 삭제 HOT 1
- 오프라인 ent 파일은 어떻게 불러올수있나요? HOT 1
- (소리)저장중이라는 전체화면 오버레이 팝업에서 앱 멈춰있는 현상 HOT 5
- 영어환경에서도 계산 카테고리의 요일값이 한글로 표기되는 문제 HOT 2
- 함수에서 결괏값을 가짐 체크박스 선택시 블럭 이미지 HOT 1
- "(a) / (b)의 몫" (quotient_and_mod) 블록 관련 버그 HOT 1
- 해당 버전 빌드가 진행되지 않습니다. HOT 1
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 entryjs.