Add "disabled" tap zone layout
This commit is contained in:
@@ -29,6 +29,10 @@ const VALUE_TO_DISPLAY_DATA: ValueToDisplayData<TapZoneLayouts> = {
|
||||
title: 'reader.settings.tap_zones.right_left',
|
||||
icon: null,
|
||||
},
|
||||
[TapZoneLayouts.DISABLED]: {
|
||||
title: 'global.label.disabled',
|
||||
icon: null,
|
||||
},
|
||||
};
|
||||
|
||||
const READER_TAP_ZONE_LAYOUT_VALUES = Object.values(TapZoneLayouts).filter((value) => typeof value === 'number');
|
||||
|
||||
@@ -118,6 +118,21 @@ export const READER_TAP_ZONE_LAYOUTS: Record<TapZoneLayouts, TapZoneRegion[]> =
|
||||
type: TapZoneRegionType.NEXT,
|
||||
},
|
||||
],
|
||||
/**
|
||||
* +---+---+---+
|
||||
* | M | M | M | P: Previous
|
||||
* +---+---+---+
|
||||
* | M | M | M | M: Menu
|
||||
* +---+---+---+
|
||||
* | M | M | M | N: Next
|
||||
* +---+---+---+
|
||||
*/
|
||||
[TapZoneLayouts.DISABLED]: [
|
||||
{
|
||||
rect: [0, 0, 100, 100],
|
||||
type: TapZoneRegionType.MENU,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const TAP_ZONE_REGION_TYPE_DATA: Record<TapZoneRegionType, { text: TranslationKey; color: string }> = {
|
||||
|
||||
@@ -11,6 +11,7 @@ export enum TapZoneLayouts {
|
||||
KINDLE,
|
||||
L_SHAPE,
|
||||
RIGHT_LEFT,
|
||||
DISABLED,
|
||||
}
|
||||
|
||||
export enum TapZoneRegionType {
|
||||
|
||||
Reference in New Issue
Block a user