![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@gradient-js/svg
Advanced tools
@gradient-js/svg
gradient-js
module for svg gradient generation
yarn add @gradient-js/svg
npm install --save @gradient-js/svg
<script src="https://unpkg.com/gradient-js/svg@x.x.x/svg.js">
import { Svg } from '@gradient-js/svg';
const svg = new Svg();
const gradient = svg.get(colors, config);
In order to create a gradient you will need to pass an array of colors
and an options
object to the Svg's get
method. colors
should be an array of strings in any valid css format (rgb(a), hex or hsl(a)). options
object consists of the CoreOptions and following properties:
type SvgOptions = CoreOptions & {
id: string;
type: 'linear' | 'radial';
gradientUnits?: 'objectBoundingBox' | 'userSpaceOnUse';
linearOptions?: SvgLinearGradientOptions;
radialOptions?: SvgRadialGradientOptions;
};
type SvgLinearGradientOptions = {
angle: number;
x1: number;
y1: number;
x2: number;
y2: number;
};
type SvgRadialGradientOptions = {
cx: number;
cy: number;
r: number;
fx: number;
fy: number;
spreadMethod: 'pad' | 'repeat' | 'reflect';
};
FAQs
Gradient-js svg generation module
We found that @gradient-js/svg 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.