Giter VIP home page Giter VIP logo

css-styled's Introduction

My Components

  • Scena: Animation Editor (Main Project)
  • Moveable: Move tool for Drag & Resize & Rotate.
  • Scene.js: JavaScript & CSS timeline-based animation library
  • Selecto: Select elements in the drag area using the mouse or touch.
  • Infinite Viewer: Document Viewer Component with infinite scrolling
  • Guides: Draw ruler and manage guidelines.
  • Scene.js Timeline: Represents the timeline of Scene.js. You can control time, properties, and items.
  • Ruler: Draw grids and scroll infinitely
  • Gesto: drag or pinch in any browser.

css-styled's People

Contributors

daybrush avatar volkansamurai avatar

Stargazers

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

Watchers

 avatar  avatar

css-styled's Issues

creact-css-styled requires `croact` but does not specify in `package.json`

the creact-css-styled packages imports the croact package but the package.json does not have croact in dependencies, only in devDependencies. this causes problems.

how to reproduce the problem:

  1. npm init
  2. npm add croact-css-styled
  3. run node, and inside run require('croact-css-styled')
    you get this error-message:
Uncaught Error: Cannot find module 'croact'
Require stack:
- .../node_modules/croact-css-styled/dist/styled.cjs.js

(in this case you can workaround it by just installing croact, but if you use yarn for example, which only allows loading code from packages that your package depends on, it becomes a harder problem)

Undefined version cause crash in non-react apps

The following commit cause an issue in project using this library:
ac6a2b3

Line that causes the issue:
ac6a2b3#diff-0e825ed2f2470d57c43b731b2eea9bbf05aef8e9d1e091b017b56ecd094609eaR22

My situation: I am using the library moveable in a non-react app.
Since there is no react version, its value is undefined so it crashes when doing .indexOf (cannot read indexOf of undefined)

@daybrush Could you check if the version exists before doing the indexOf ? Like:
if ((version ?? '').indexOf("simple") > -1 && portalContainer) {

Thank you

Has an issue in StrictMode

I've found that this library generates an error when used with React's strict mode. It looks like it would be straightforward to fix - this code just needs to be switched to using refs instead of using findDOMNode.

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Styler which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by Styler)
    in Styler (created by MoveableManager)
    in MoveableManager (created by Moveable)
    in Moveable

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.