Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@flatten-js/core

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flatten-js/core - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

3

examples/nodejs/index.js
// Just hit "node index.js" in the terminal while you are in the directory of this project
// In the real app you will need to install @flatten-js/core
let Flatten = require('../../dist/main.umd');
let Flatten = require('@flatten-js/core');
let {point, segment, circle} = Flatten;

@@ -7,0 +6,0 @@

{
"name": "@flatten-js/core",
"version": "1.0.10",
"version": "1.0.11",
"description": "Javascript library for 2d geometry",

@@ -59,4 +59,4 @@ "main": "dist/main.cjs.js",

"dependencies": {
"@flatten-js/interval-tree": "^1.0.4"
"@flatten-js/interval-tree": "^1.0.5"
}
}

@@ -10,6 +10,6 @@ [![npm version](https://badge.fury.io/js/%40flatten-js%2Fcore.svg)](https://badge.fury.io/js/%40flatten-js%2Fcore)

**flatten-js** provides a lot of useful methods and algorithms like finding intersections, checking inclusion, calculating distance, apply
transformations and more.
**flatten-js** provides a lot of useful methods and algorithms like finding intersections, checking inclusion, calculating distance, applying
affine transformations, performing boolean operations and more.
Library consists of several packages, published under scope **@flatten-js/** (will be more):
Library consists of several packages, published under scope **@flatten-js/**:

@@ -25,4 +25,2 @@ | Name | Description |

Read documentation for each package to understand which dependencies should be installed with the package
Library provides different entry points suitable for various targets.

@@ -32,10 +30,14 @@ TypeScript users may take advantage of static type checking with typescript definition file index.d.ts included into the package.

**flatten-js** does not concern too much about visualization.
Anyway, all objects have svg() methods, that returns a string which may be inserted into SVG container.
Anyway, all classes have svg() methods, that returns a string which may be inserted into SVG container.
This works pretty well together with [d3js](https://d3js.org/) library. But it is definitely possible to create bridges to other graphic libraries.
The best way to start working with FlattenJS is to use awesome [Observable](https://beta.observablehq.com/) javascript interactive notebooks.
There are several **flatten-js** tutorials published in Observable Notebooks, see below.
There are several tutorials published in Observable Notebooks, see below.
Full documentation may be found here: [https://alexbol99.github.io/flatten-js/index.html](https://alexbol99.github.io/flatten-js/index.html)
## Contacts
Follow me on Twitter [@alex_bol_](https://twitter.com/alex_bol_)
## Installation

@@ -85,6 +87,2 @@

## Contacts
Follow me on Twitter [@alex_bol_](https://twitter.com/alex_bol_)

@@ -146,3 +146,3 @@ /**

comparable_max(box1, box2) {
static comparable_max(box1, box2) {
// return pt1.lessThan(pt2) ? pt2.clone() : pt1.clone();

@@ -152,3 +152,3 @@ return box1.merge(box2);

comparable_less_than(pt1, pt2) {
static comparable_less_than(pt1, pt2) {
return pt1.lessThan(pt2);

@@ -155,0 +155,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc