UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

31 lines (30 loc) 1.21 kB
/** * DevExpress HTML/JS Reporting (designer\controls\properties\glyphsInfo.js) * Version: 25.2.3 * Build date: Dec 15, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { Size } from '@devexpress/analytics-core/analytics-elements'; import { Editor } from '@devexpress/analytics-core/analytics-widgets'; import * as ko from 'knockout'; import { ImageSource } from '../../../common/imageSource'; import { GlyphStyle } from '../../../viewer/editing/models/checkEditingField'; export function getDefaultCheckSize(checkState = GlyphStyle.StandardBox1) { if (checkState === GlyphStyle.StandardBox1) return new Size(13, 13); else return new Size(16, 16); } export function _getCustomGlyphsInfo(type) { return { propertyName: type, modelName: '@' + type, editor: { header: 'dxrd-image-loadfile', editorType: Editor }, displayName: type, localizationId: 'DevExpress.XtraReports.UI.CheckBoxGlyphs.' + type, from: val => ko.observable(ImageSource.parse(val)), toJsonObject: ImageSource.toString, defaultVal: null }; }