GithubHelp home page GithubHelp logo

silexlabs / cocktail Goto Github PK

View Code? Open in Web Editor NEW
191.0 191.0 34.0 317.34 MB

An HTML/CSS rendering engine for the Haxe language

Home Page: http://www.silexlabs.org/haxe/cocktail/

License: Other

Haxe 98.93% JavaScript 0.80% CSS 0.19% HTML 0.08% Makefile 0.01%

cocktail's People

Contributors

clemos avatar codam avatar lexoyo avatar ooflorent avatar skylerparr avatar sspecht avatar tc218 avatar yanhick avatar zabojad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocktail's Issues

imageLoader ne fonctionne pas en cross-domain

de zabojad :

J'ai du aussi modifier un fichier dans cocktail : cocktail.resource.as3.ImageLoader
A la ligne 72, j'ai rajouté :
loadingContext.checkPolicyFile = true;
Sinon le cross domain ne fonctionne pas en flash.

finish demo web app

Inconsistencies in flash and js linear and gradient fill

for graphic dom object : radial gradient width/height and rotation isn't consistent in flash and js.

dom object : linear gradient ratio is slighlty different in AS/JS. The matrix in Flash must also be scaled to the box whereas it is not in JS.

We must find a higher abstraction for these as implementation is quite different for these. Maybe add a matrix attribute for graphic dom object which will be used each time a rendering method such as endFill or drawImage is called ?

keyboard ascii code bug in js

For the keyboard, the ascii code is not returned in JS because it is supposed to only be returned in "keypress" events and not "keydown" or "keyUp". Add a listener for "keypress" when keyDown and keyUp events are raised ?

Wait for the refactoring of the event system to correct

cleaned up the package nativeElement

The class "NativeElementManager" is defined in cocktail/nativeElement/NativeElementManager.hx instead of cocktail/nativeElement/abstract

The different class names could be better (creator, manager, path manager...)

inline block issue concerning width (and possibily height also)

Issue only exists in AS3 version
When a parent has its position set to inlineblock, with:
-child1 set to block and with width defined
-child2 set to block with width = auto
=> the width of the parent and child2 are set to browser width instead of child1's width

cocktailCore = cocktail.core

Une majuscule dans un nom de package, c'est bizarre...

De plus, le core de cocktail fait partie de Cocktail donc ne serait-ce pas mieux d'avoir toutes les classes du coeur dans cocktail.core au lieu de cocktailCore ?

url of the VM

I need to access the URL of the VM or publication

In flash it is:
flash.Lib.current.loaderInfo.url.substr(0, flash.Lib.current.loaderInfo.url.lastIndexOf("/"));

In js it is:
window.location.href.toString()

Filling a GraphicDOMElement with a tile image does not work correctly

When using the following code, the GraphicDOMElement is not filled correctly with the tile image:

    graphic.style.height = DimensionStyleValue.length(px(43));
    //graphic.height = 43;
    graphic.style.width = DimensionStyleValue.percent(100);

    graphic.beginFill(FillStyleValue.bitmap(image, true));
    graphic.drawRect(0, 0, graphic.width, graphic.height);
    graphic.endFill();
    graphic.alpha = 1;

The height of the tile image is 43, but the image is repeated on width (correct), but also on height (incorrect).

adding: "graphic.height = 43;" solves the problem

Image callback issue

When loading multiple small image using the same callback, the callback is called only for the first image.
Check the iphone demo (ApplicationStructure.hx) to reproduce the issue.

resource package refactoring

In all the package but the resource package, all of the .hx files at the root of the package are meant to be imported by users of Cocktail. The ResourceData and ResourceLoader files at the root of the resource package must only be used by the package itself. Where do we put the them ? For ResourceLoader, we can move it in an "abstract" package and rename it "AbstractResourceLoader"

un ImageDOMElement chargé 2 fois n'efface pas la première image

de zabojad :

Je viens de remarquer que quand je fais :

ResourceLoaderManager.loadImage(imageDOMElement.src, onMainPictureLoaded, function(err){}, currentMainImage);

currentMainImage n'est pas remplacé en flash non plus, l'ancienne image qu'il contenait reste à l'écran et c'est crado... De la façon dont je comprend la méthode loadImage et la possibilité de passer en paramètre un ImageDOMElement, il me semble que c'est un bug...

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.