New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

visual-log

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

visual-log

Log geometric data to the browser console.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Visual Log

Log geometric data to the browser console.

Installation

npm i visual-log

Usage

  • id(newId: string) the following objects will be added to the image with the id newId
  • color(newColor: string) the following objects will be of color newColor
  • arrow(from: Vec3, to: Vec3) add an arrow to the current image
  • lineSegment(from: Vec3, to: Vec3) add a line segment to the current image

Example

import * as vlog from "visual-log";

vlog.arrow([0, 0, 0], [3, 0, 3]);
vlog.lineSegment([1, 0, 0], [4, 0, 1]);

This outputs the following image to the console:

output

FAQs

Package last updated on 19 Aug 2022

Did you know?

Socket

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.

Install

Related posts