Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
@the-grid/caliper
Advanced tools
Measurement library for Poly, handling different media types.
First make sure you have all dependencies installed:
npm install
Use the following command to run tests locally:
grunt
Caliper deals with the following blocks:
headline:
id: 'one'
type: 'headline'
html: '<h1>This is a headline</h1>'
text: 'This is a headline'
length: 18
}
paragraph:
id: 'two'
type: 'text'
html: '<p>Hello world, <b>this</b> is some text</p>'
text: 'Hello world, this is some text'
length: 30
cta:
id: '1234cta'
type: 'cta'
uuid: '71bfc2e0-4a96-11e4-916c-0800200c9a66'
verb: 'purchase'
price: '96'
html: '<button data-uuid=71bfc2e0-4a96-11e4-916c-0800200c9a66 data-role="cta" data-verb="purchase" data-price="96">Buy now</button>'
text: 'Buy now'
length: 7
list:
id: 'ordered'
type: 'list'
html: '<ul><li>Foo</li><li>Bar</li></ul>'
items: 2
image:
id: 'foo'
type: 'article'
src: 'http://foo/fullscale.png'
cover:
orientation: 'landscape'
src: 'http://foo/fullscale.png'
altsrc: 'http://foo/original.png'
ratio: '1004:777'
width: 2008
height: 1554
faces: [
{ x: 608.1907291149191
y: 189.99097584365575
width: 229.20877742760769
height: 229.20877742760769
neighbors: 2
confidence: -1.7360807700000014 }
]
colors: [[197, 135, 87], ...]
saliency:
polygon: [[2006, 1552], ...]
center: [1258, 1233]
radius: 836.904
bounding_rect: [[483, 817], [2007, 1553]]
negative_space:
rectangles: [
{ x: 0
y: 0
width: 1943
height: 780
text:
large: 1184
medium: 3947
small: 6647 }
]
colors: [
[[24,15,8],
[43,34,27],
[94,10,30],
[139,25,48],
[89,67,53],
[151,90,68],
[187,128,98],
[220,165,145],
[146,124,92],
[216,202,196]]
]
scene:
bbox:
x: number
y: number
width: number
height: number
altsrc
is optional and should be the original src
when availablesrc
should be the fullscale src
when availablesrc
(for now, we should extract from the scaled down src in the near future)faces
length can be equal to zeronull
in noflo-browser
video:
id: 'youtube'
type: 'video'
html: '<iframe src="//www.youtube.com/embed/P5cdlLTqb24?list=UUnPE7t9tqwcsO0LLyw5zuPQ"></iframe>'
video:
src: '//www.youtube.com/embed/P5cdlLTqb24?list=UUnPE7t9tqwcsO0LLyw5zuPQ'
src: 'http://img.youtube.com/vi/P5cdlLTqb24/hqdefault.jpg'
cover:
... the same of image type ...
FAQs
Measurement library
The npm package @the-grid/caliper receives a total of 6 weekly downloads. As such, @the-grid/caliper popularity was classified as not popular.
We found that @the-grid/caliper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.