0.0.3 • Published 5 years ago

react-easeljs v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react-easeljs

The React component wrapper for EaselJS Stage and DisplayObjects

usage

import React from 'react';
import {REStage, REContainer, REText} from "../ReactEaselJS";

class Main extends React.Component{
  constructor(props){
    super(props);
  }
  
  render(){
    return (
      <React.Fragment>
        <REStage width="960" height="480" devicePixelRatio={window.devicePixelRatio}>
          <REText x={20} y={20} text={`client: ${navigator.userAgent}`} font="10px Arial"/>
        </REStage>
      </React.Fragment>
    );
  }
}
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago