Files
blockly/core/renderers/measurables/jagged_edge.ts
Maribeth Bottorff 8173d139e1 feat: make renderer methods public or protected (#6887)
* feat: make renderering methods public or protected

* chore: formatting

* chore: recommend thrasos more strongly
2023-03-09 00:31:47 +00:00

31 lines
798 B
TypeScript

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as goog from '../../../closure/goog/goog.js';
goog.declareModuleId('Blockly.blockRendering.JaggedEdge');
import type {ConstantProvider} from '../common/constants.js';
import {Measurable} from './base.js';
import {Types} from './types.js';
/**
* An object containing information about the space the jagged edge of a
* collapsed block takes up during rendering.
*/
export class JaggedEdge extends Measurable {
/**
* @param constants The rendering constants provider.
*/
constructor(constants: ConstantProvider) {
super(constants);
this.type |= Types.JAGGED_EDGE;
this.height = this.constants_.JAGGED_TEETH.height;
this.width = this.constants_.JAGGED_TEETH.width;
}
}