1 Star 0 Fork 0

时光叫我别恋她 / Canvas-Snippets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Canvas Snippets is a plugin for SublimeText 2 & 3 to make coding with HTML5 Canvas API a little easier.

Installing


Download the latest version:

or

Install it via Package Control.

  • Install PackageControl
  • Find PackageControl in the Command Palette(CTRL+SHIFT+P)
  • Search for Canvas Snippets and Install it.

Using


Using these snippets are as easy as typeing the first two letters of a Method and Entering Tab.

Examples:

  • To revel the stroke() method, type st and Press Tab.
  • To insert the rotate() method, type ro and Press Tab.

And So on.........

For when the Method/Property names are more than one word, type the second word's first two letters with the first two letters of the first word like in the examples below.

  • To revel the shadowColor property, type shco and Press Tab.
  • To insert the beginPath() method, type bepa and Press Tab.

And So on.........

NOTE: Remember everything you type before entering the Tab must be in Lower Case.

Major Change since v1.1.0


Up until this release you would have to type context or ctx or whatever you have named the Canvas' Context and then the tabtrigger to insert a snippet but, from here on you don't have to enter the Context, it set to "ctx" as default and cannot be changed.

So, if you type fi
previously it would just be fill()
but now it will be ctx.fill()

I have also added a CheatSheet.txt which you can make use of when using these snippets.


If you have any doubts about how to use a snippet, please refer to my CheatSheet File or

If something is not working right please make an issue HERE

Your Thoughts and Contributions are always appropriated.


空文件

简介

sublime的画布插件 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhongxiong1118/Canvas-Snippets.git
git@gitee.com:zhongxiong1118/Canvas-Snippets.git
zhongxiong1118
Canvas-Snippets
Canvas-Snippets
master

搜索帮助