hello, ZIM community day after day i became a huge fan of ZIM.
am making simple drag an drop app there is no need to fit all screen just in one bootstrap div but the elments of stage
Thanks for the kind words! We love ZIM too ;-). Welcome to the forum!
For scaling ZIM to a div tag, we have posted a couple examples here https://zimjs.com/frame - see the two TAG examples. Do they help? I am not quite sure if you are having a problem with that - or what the problem is.
If you are on Firefox, type about:config into the browser bar and search for speech and make sure they are on. Otherwise... which browser/os are you using?
// let user pick a voice
const speech = new Speech();
// interact at least once before talking
new Button({label:"TALK"}).center().mov(0,-120).tap(()=>{
speech.talk("Hello World!", list?list.text:null);
});
let list;
speech.on("voiceschanged", ()=>{ // must wait for voices to be loaded
if (list) list.dispose(); // seems to run only once but just in case
list = new List(500,300,speech.voices,6).center().mov(0,120);
S.update();
});
So no voice on opera... okay. Interesting. It is a wrapper for the JS Speech API so whatever supports that, should work in ZIM. Using the Web Speech API - Web APIs | MDN - I see Opera is red X for speech on Android - but desktop is good for some and not for others.
Arabic should be good. @hmghaly helped us with an Arabic keyboard for instance and @amihanya and crew have been using rtl for many apps.
new Keyboard({label:label, layout:"arabic"}).show();
Use the radius parameter of the Book(). This is null be default and the whole book turns the pages. Set the radius to 100 and only the corner will do the pages - or whatever setting works best for you.
Hmmm... I have not colored an SVG - it will not have a color property. A couple possibilities...
use an SVG() with the bitmap:false so that it makes an SVGContainer - then the children will be ZIM objects like Blob, Circle, etc. and they have color properties - svg.getChildAt(1).color = red;
var svg = new SVG({svg:"https://gist.githubusercontent.com/karelrosseel/fb3a364d1b7ba00922ba9746f9a80d7d/raw/be77742ad5f06acf3ee9767f59ac5564b0536f55/vlinder.svg", bitmap:false}).siz(500).centerReg();
svg.getChildAt(1).color = red;