1.0.4 • Published 2 years ago

es-shape v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

shapes

shape a baisc on EcmaScript development

development baisc Typescript

programming thought object oriented or functional formula

about

why use typescript learn docs typescript

why use object oriented shapes project dev? object orented Good fine-grained division of modules for object-oriented development programs Not knowing what object-oriented is does not affect the development of this project。 If you want to learn object-oriented development program, it is recommended to look at the Java language

learn project

project package use pnpm

  1. install
pnpm i
  1. development
npm run dev
  1. production
npm run build

graphics model

import { Circle } from 'es-shape/model';
// startPoint raduis  stroke fill CanvasRenderingContext2D.styles supper
const circle = new Circle({ x: 100, y: 200, z: 0 }, 50, 'stroke', styles);
const canvas: HTMLCanvasElement = document.getElementById('canvas');
const context: CanvasRenderingContext2D = canvas.getContext('2d');
circle.render(context);
// stroke circle in graphics circle view
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago