Enyo Canvas library
JavaScript
Switch branches/tags
pilot-11 pilot-10 pilot-9 jenkins-enyo-rc-release-11 jenkins-enyo-rc-release-10 jenkins-enyo-github-nightly-1338 jenkins-enyo-github-nightly-1337 jenkins-enyo-github-nightly-1336 jenkins-enyo-github-nightly-1335 jenkins-enyo-github-nightly-1334 jenkins-enyo-github-nightly-1333 jenkins-enyo-github-nightly-1332 jenkins-enyo-github-nightly-1331 jenkins-enyo-github-nightly-1330 jenkins-enyo-github-nightly-1329 jenkins-enyo-github-nightly-1328 jenkins-enyo-github-nightly-1327 jenkins-enyo-github-nightly-1326 jenkins-enyo-github-nightly-1325 jenkins-enyo-github-nightly-1324 jenkins-enyo-github-nightly-1323 jenkins-enyo-github-nightly-1322 jenkins-enyo-github-nightly-1321 jenkins-enyo-github-nightly-1320 jenkins-enyo-github-nightly-1319 jenkins-enyo-github-nightly-1318 jenkins-enyo-github-nightly-1317 jenkins-enyo-github-nightly-1316 jenkins-enyo-github-nightly-1315 jenkins-enyo-github-nightly-1314 jenkins-enyo-github-nightly-1313 jenkins-enyo-github-nightly-1312 jenkins-enyo-github-nightly-1311 jenkins-enyo-github-nightly-1310 jenkins-enyo-github-nightly-1309 jenkins-enyo-github-nightly-1308 jenkins-enyo-github-nightly-1307 jenkins-enyo-github-nightly-1306 jenkins-enyo-github-nightly-1305 jenkins-enyo-github-nightly-1304 jenkins-enyo-github-nightly-1303 jenkins-enyo-github-nightly-1302 jenkins-enyo-github-nightly-1301 jenkins-enyo-github-nightly-1300 jenkins-enyo-github-nightly-1299 jenkins-enyo-github-nightly-1298 jenkins-enyo-github-nightly-1297 jenkins-enyo-github-nightly-1296 jenkins-enyo-github-nightly-1295 jenkins-enyo-github-nightly-1294 jenkins-enyo-github-nightly-1293 jenkins-enyo-github-nightly-1292 jenkins-enyo-github-nightly-1291 jenkins-enyo-github-nightly-1290 jenkins-enyo-github-nightly-1289 jenkins-enyo-github-nightly-1288 jenkins-enyo-github-nightly-1287 jenkins-enyo-github-nightly-1286 jenkins-enyo-github-nightly-1285 jenkins-enyo-github-nightly-1284 jenkins-enyo-github-nightly-1283 jenkins-enyo-github-nightly-1282 jenkins-enyo-github-nightly-1281 jenkins-enyo-github-nightly-1280 jenkins-enyo-github-nightly-1279 jenkins-enyo-github-nightly-1278 jenkins-enyo-github-nightly-1277 jenkins-enyo-github-nightly-1276 jenkins-enyo-github-nightly-1275 jenkins-enyo-github-nightly-1274 jenkins-enyo-github-nightly-1273 jenkins-enyo-github-nightly-1272 jenkins-enyo-github-nightly-1271 jenkins-enyo-github-nightly-1270 jenkins-enyo-github-nightly-1268 jenkins-enyo-github-nightly-1267 jenkins-enyo-github-nightly-1266 jenkins-enyo-github-nightly-1265 jenkins-enyo-github-nightly-1264 jenkins-enyo-github-nightly-1263 jenkins-enyo-github-nightly-1262 jenkins-enyo-github-nightly-1261 jenkins-enyo-github-nightly-1260 jenkins-enyo-github-nightly-1259 jenkins-enyo-github-nightly-1258 jenkins-enyo-github-nightly-1257 jenkins-enyo-github-nightly-1256 jenkins-enyo-github-nightly-1255 jenkins-enyo-github-nightly-1254 jenkins-enyo-github-nightly-1253 jenkins-enyo-github-nightly-1252 jenkins-enyo-github-nightly-1251 jenkins-enyo-github-nightly-1250 jenkins-enyo-github-nightly-1249 jenkins-enyo-github-nightly-1248 jenkins-enyo-github-nightly-1247 jenkins-enyo-github-nightly-1246 jenkins-enyo-github-nightly-1245 jenkins-enyo-github-nightly-1244 jenkins-enyo-github-nightly-1243
Nothing to show
Latest commit 9bfc0ad Apr 12, 2016 @webOS101 webOS101 Merge pull request #18 from enyojs/2.6.0-dev
Merge 2.6.0-dev into master.

README.md

Looking for the issue tracker?

It's moved to https://enyojs.atlassian.net.


Enyo Canvas Library

Canvas is a UI library for Enyo 2.

This shows how to wrap the HTML canvas element as a enyo.Control, but have components as children of the canvas that are based on enyo.UIComponent so they're not their own DOM nodes.

  • enyo.canvas.Control - base kind for all renderable objects
    • enyo.canvas.Shape - base kind for all shapes (rectangle and circle)
      • enyo.canvas.Rectangle - render a rectangle
      • enyo.canvas.Circle - render a circle
      • enyo.canvas.Text - render a string of text with specified font
    • enyo.canvas.Image - render an image from a file

The library is mainly intended as a demonstration, rather than a complete tool for canvas manipulation, and there are no changes or additional features planned.

Samples

All samples reside in a consolidated sample app for Enyo and its libraries: enyo-strawman

Copyright and License Information

Unless otherwise specified, all content, including all source code files and documentation files in this repository are:

Copyright (c) 2012-2014 LG Electronics

Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.