![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
ng-opendraw
Advanced tools
Opendraw is an angular component that manipulates the canvas for drawing content across all devices
Opendraw is an angular component that manipulates the canvas for drawing content across all devices. It supports touch/pen/mouse devices. It uses pointerEvent to detect the device.
Try it out here: DEMO or clone this repo and run ng serve
for a full demo of opendraw. Angular version 8.2.14.
First install the package with the command npm i ng-opendraw
Then, in your module.ts, import the library module
import { NgOpendrawModule } from 'ng-opendraw';
And add it to your imports modules.
You can now use <ng-opendraw></ng-opendraw>
it in any component.html
<ng-opendraw
[canHeight]='this.height'
[canWidth]='this.width'
[lineWidth]='this.lineWidth'
[lineColor]='this.getColor()'
[commandObs]='this.commandObs$'
[drawStyle]='this.drawStyle'
[fillShape]='this.fillShape'
[eraser]='this.eraser'
[allowedDeviceType]='this.allowedDeviceType'
[backgroundImage]='this.bgImg'
[backgroundColor]='this.bgColor'
(outputEvent)='this.processResult($event)'
(errorEvent)='this.processError($event)'
></ng-opendraw>
Check out the repo for a full demo code here
Property | Type | Note |
---|---|---|
[canHeight] | number | Height of the canvas area in px |
[canWidth] | number | Width of the canvas area in px |
[lineWidth] | number | Line width in px, default: 3 |
[lineColor] | string | Line color, default: black |
[commandObs] | Observable(DrawCommand) | Triggers a drawcommand like export, clear, ... |
[drawStyle] | DrawStyle | Specify the drawing style like normal, circle, rectangle, line... default: normal |
[fillShape] | boolean | Enable/disable shape filling |
[eraser] | boolean | Enable/disable eraser |
[allowedDeviceType] | DeviceType | Specify the allowed device type like mouse, touch, pen... default: all |
[backgroundImage] | Image/HTMLImageElement | Specify the background layer image |
[backgroundColor] | string | Specify the background layer color |
Event | Type | Note |
---|---|---|
(outputEvent) | string | Emits the exported drawing image |
(errorEvent) | any | Emits all errors |
This package is on npm
https://www.npmjs.com/package/ng-opendraw
This package is under the MIT license
FAQs
Opendraw is an angular component that manipulates the canvas for drawing content across all devices
The npm package ng-opendraw receives a total of 0 weekly downloads. As such, ng-opendraw popularity was classified as not popular.
We found that ng-opendraw demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.