s1pierro / FiberFold

Fiberfold aim to be an advanced and user-friendly Paper-crafting tool.
GNU General Public License v3.0
2 stars 3 forks source link

FiberFold offline storage #43

Open 3dphoto opened 6 years ago

3dphoto commented 6 years ago

Thinking when a user loses their connection or intermittent signal. We should look out for those users that are temporarily offline to keep them moving along seamlessly and/or in-sync with FiberFold using localStorage.

image

jQuery Offline Plugin https://github.com/wycats/jquery-offline

An Intro to Offline Data Storage and Sync With PouchBD and Couchbase https://dzone.com/articles/ntroduction-to-offline-data-storage-and-sync-with-pouchdb-and-couchbase

Offline Storage for Progressive Web Apps https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa

s1pierro commented 6 years ago

Hello. offline storage is already provided. that came first. By clicking the download icon, left close to menu icon. Users can downlod a copy of the wavefront they are flattening. That copy include in comment what I call "freezed edges" in this form :

frz 12 3 4 etc..

since Papier dont require any edge definition in the wavefront file (they are ignored ). This notati on is very dependent on the internals .obj loading functions.( I use my own, not three's. From what I feed THREE.scene.) It's a tiny weaks in long-term reliability.

storing edges defs have to and will be implemented.

But right now :) you can already download / upload files to the app, to save and restore your work.

3dphoto commented 6 years ago

It is good to have a copy of the obj indeed. What is missing from this unless I'm missing something are

s1pierro commented 6 years ago

I dont anderstand what you mean by A4 island ?

3dphoto commented 6 years ago

I have theories in pushing the 2D surface cut-out(s)(island(s)) further


Reference https://github.com/s1pierro/Papier/issues/31 Island rotation https://github.com/s1pierro/Papier/issues/30 Island spacing https://github.com/s1pierro/Papier/issues/29 Multiple A4 pages = divide faces https://github.com/s1pierro/Papier/issues/13 Ability to delete an island https://github.com/s1pierro/Papier/issues/12 Association: Three.js highlighted surface to A4 island by color https://github.com/s1pierro/Papier/issues/8 A4 rearranging islands