Repository navigation
Releases: svioletg/py-squaremap-combiner
Releases · svioletg/py-squaremap-combiner
Release list
v1.0.0-beta.3
Changed
- Replaced usage of
NoReturnwithNever - Replaced usage of inheriting both
strandEnumwith just inheritingStrEnum
Fixed
- Fixed
py-maybetypedependency inpyproject.tomlto use PyPI instead of the GitHub repository link - Fixed a handful of typing and linting errors now that we're using ty
v1.0.0-beta.2
Fixed
- Fixed log message format used in file logging to be consistent with stdout log format
v1.0.0-beta.1
This release is meant to be a major overhaul to the entire squaremap-combine project, and includes many breaking changes. In general, lots of cleanup and linting has been done (in part thanks to moving from pylint to ruff), and many features have been either removed or reworked for the sake of narrowing project scope and strengthening core functionality. Notably...
- The previous
dearpyguiimplementation of the GUI wrapper has been removed — the plan is to eventually replace it with a new Qt/PySide-based GUI, but the focus right now is on improving the CLI. - Options for styling image output (mainly grid-related) have been reduced or simplified — again, to put more focus on core functionality.
Added
- Added multiple CLI options:
- Added
-z/--zoom - Added
--grid-lines - Added
--grid-font - Added
--no-progress-bar
- Added
- Added module
const - Added module
geo- Added class
Coord2f- Largely identical to
Coord2i, but operates on floats exclusively
- Largely identical to
- Added class
Grid - Added class
Rect - Added method
map()toCoord2i
- Added class
- Added test module
test_color_class - Added test module
test_geometry - Added
JSONEncoder-extended classImplementableJSONEncodertoutil- Allows classes to implement a
__json__()method for serialization
- Allows classes to implement a
- Added enum class
const.NamedColorHex - Added enum class
logging.LogLevel - Added function
util.coerce_to - Added function
util.draw_corners
Changed
- Changed multiple CLI options:
- All options now either only use a single character for their short name, or have no short name at all
- Renamed
--output-dirto--out, now takes a file path instead of a directory path - Renamed
-g/--grid-intervalto-g/--grid - Renamed
-gcf/--grid-coords-formatto--grid-coords(no short name)
- Renamed module
combine_clitocli - Renamed module
combine_coretocore - Renamed module
helpertoutil - Renamed class
AssertionMessagein moduleerrorstoErrMsg - Moved class
Coord2ifromcoretogeo - Renamed attribute
MapImage.detail_multoMapImage.zoom - Rewrote class
core.Combiner, see the docs for details - In module
util:- Renamed method
Color.to_hex()toColor.as_hex() - Renamed method
Color.to_rgb()toColor.as_rgb() - Renamed method
Color.to_rgba()toColor.as_rgba()
- Renamed method
- In module
geo:Coord2iis now subscriptable, withCoord2i(...)[0], Coord2i(...)[1]being equivalent toCoord2i(...).x, Coord2i(...).yCoord2i.__init__()can now accept atuple[int, int]or anotherCoord2iinstance as a first argument, in which case noyargument is required
logging.enable_logging()now only affectslogging.logger
Removed
- Removed multiple CLI options:
- Removed
-ext/--output-ext; image format now inferred from the suffix of-o/--out - Removed
-t/--timestamp - Removed
-fs/--force-size - Removed
-sf/--style-file - Removed
-so/--style-override
- Removed
- Removed optional dependency group
gui - Removed module
gui - Removed module
project; contents moved toconst - Removed module
type_alias- Aliases
ColorRGBandColorRGBAwere unused and thus not moved anywhere - Alias
Rectangleremoved, either the newRectclass ortuple[int, int, int, int]will be used
- Aliases
- In module
core:- Removed class
MapImage - Removed class
MapImageCoord - Removed class
GameCoord - Removed method
draw_grid_lines()fromcore.Combiner - Removed method
draw_grid_coords_text()fromcore.Combiner - Removed method
to_json()fromcore.CombinerStyle - Removed multiple methods from
core.MapImage:getbbox(),paste(),save()- The object's
imgattribute should be accessed directly for these methods instead
- The object's
- Removed class
- In module
util:- Removed class
StyleJSONEncoder; replaced withImplementableJSONEncoder - Removed class attribute
COMMONfromColor - Removed class method
from_name()fromColor - Removed multiple functions:
confirm_yn(),copy_method_signature(),filled_tuple()
- Removed class
- Removed multiple constants from
const:APP_SETTINGS_PATHDEFAULT_COORDS_FORMATDEFAULT_OUTFILE_FORMATDEFAULT_TIME_FORMATOPT_AUTOSAVE_PATHSTYLE_AUTOSAVE_PATH