editor-js / editor-js/embed

Output format: Are width/height always integers, or can they be floats?

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
159
Forks
105
PR merge metrics
No merged PRs in 30d

Description

In the output format, are `width` and `height` guaranteed to always be integers, or can they be floating point numbers?

Context: I'm a back-end .NET developer needing to parse Editor.js documents. Back-end deserialization/parsing in strongly typed languages requires me to choose to deserialize to either `int` (the simplest and most constrained) or `float` (the most general, but unnecessary if it's guaranteed to always be an integer). If these properties are guaranteed to always be `int`, then that guarantee should ideally be added to the readme to ensure it is formalized and kept in the future.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.