Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@progress/kendo-drawing
Advanced tools
@progress/kendo-drawing is a powerful library for creating and manipulating vector graphics in web applications. It provides a rich API for drawing shapes, paths, and text, as well as for applying transformations and styles. The library is part of the Kendo UI suite and is designed to work seamlessly with other Kendo UI components.
Drawing Shapes
This feature allows you to draw basic shapes like circles, rectangles, and ellipses. The code sample demonstrates how to create a circle with a specific stroke and fill color.
const draw = require('@progress/kendo-drawing');
const surface = draw.Surface.create(document.getElementById('surface'));
const circle = new draw.Circle(new draw.geometry.Circle([100, 100], 50), {
stroke: {
color: '#000',
width: 2
},
fill: {
color: '#ff0000'
}
});
surface.draw(circle);
Drawing Paths
This feature allows you to draw complex paths by defining a series of points and lines. The code sample demonstrates how to create a path with multiple line segments.
const draw = require('@progress/kendo-drawing');
const surface = draw.Surface.create(document.getElementById('surface'));
const path = new draw.Path({
stroke: {
color: '#000',
width: 2
}
});
path.moveTo(10, 10).lineTo(100, 100).lineTo(200, 50);
surface.draw(path);
Applying Transformations
This feature allows you to apply transformations such as rotation, scaling, and translation to shapes. The code sample demonstrates how to rotate a rectangle around a specific point.
const draw = require('@progress/kendo-drawing');
const surface = draw.Surface.create(document.getElementById('surface'));
const rect = new draw.Rect(new draw.geometry.Rect([50, 50], [100, 100]), {
stroke: {
color: '#000',
width: 2
},
fill: {
color: '#00ff00'
}
});
rect.transform(draw.transform().rotate(45, [100, 100]));
surface.draw(rect);
Styling Elements
This feature allows you to style elements such as text and shapes with various properties like font, color, and stroke. The code sample demonstrates how to style a text element.
const draw = require('@progress/kendo-drawing');
const surface = draw.Surface.create(document.getElementById('surface'));
const text = new draw.Text('Hello, World!', [50, 50], {
font: 'bold 20px Arial',
fill: {
color: '#0000ff'
}
});
surface.draw(text);
Paper.js is an open-source vector graphics scripting framework that runs on top of the HTML5 Canvas. It offers a clean Scene Graph/Document Object Model and a lot of powerful functionality to create and work with vector graphics. Compared to @progress/kendo-drawing, Paper.js is more focused on providing a comprehensive framework for vector graphics with a more extensive set of features.
Two.js is a two-dimensional drawing API for the web. It aims to make the creation and animation of flat shapes easier and more intuitive. Two.js supports SVG, Canvas, and WebGL renderers. Compared to @progress/kendo-drawing, Two.js is more lightweight and focuses on providing a simple API for 2D drawing and animation.
SVG.js is a lightweight library for manipulating and animating SVG. It provides a simple API for creating and modifying SVG elements. Compared to @progress/kendo-drawing, SVG.js is more specialized in working with SVG and offers a more straightforward approach to SVG manipulation and animation.
This package is part of the Kendo UI for Angular and KendoReact suites.
This is commercial software. To use it, you need to agree to the Telerik End User License Agreement for Kendo UI (for Kendo UI for Angular) or to the End User License Agreement for Progress KendoReact (for KendoReact). If you do not own a commercial license, this file shall be governed by the trial license terms.
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.
FAQs
Kendo UI Drawing
The npm package @progress/kendo-drawing receives a total of 157,050 weekly downloads. As such, @progress/kendo-drawing popularity was classified as popular.
We found that @progress/kendo-drawing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.