mapbox / shelf-pack-cpp Goto Github PK
View Code? Open in Web Editor NEWC++ port of https://github.com/mapbox/shelf-pack
License: ISC License
C++ port of https://github.com/mapbox/shelf-pack
License: ISC License
Generate docs for this project rather than just pointing to the shelf-pack js docs.
int32_t width() const { return width_; }
int32_t height() const { return height_; }
I'm wondering why the parameters for Bin
are set to default to -1
, in particular for x
and y
. Would a better default be 0
?
/cc @bhousel
JS shelf-pack is v2 now, so I should port those features to cpp also (refcounting and smarter waste management)
port mapbox/shelf-pack#10
duplicate symbol __ZN6mapboxlsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_3BinE in:
/Users/john/Development/mapbox-gl-native/build/macos/mbgl.build/Debug/mbgl-test.build/Objects-normal/x86_64/bucket.test.o
/Users/john/Development/mapbox-gl-native/build/macos/Debug/libmbgl-core.a(render_symbol_layer.o)
That demangles to mapbox::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mapbox::Bin const&)
, which is defined without the inline
keyword, so it ends up duplicated in any translation unit that includes shelf-pack.hpp.
Can we remove this function or move it to test.cpp so there's no <iostream>
dependency in the header?
probably needs -std=c++14
port over the benchmarks from the shelf-pack js project
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.