@accurat/acc-data-portrait
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,4 +0,4 @@ | ||
import { DataPortraitAnswer, DataPortraitMetadata, DataPortraitInterpolationType } from './models/types'; | ||
export declare function createDataPortrait(originalSvg: string, metadata: DataPortraitMetadata, userAnswer: DataPortraitAnswer, options?: { | ||
import { DataPortraitSurvey, DataPortraitMetadata, DataPortraitInterpolationType } from './models/types'; | ||
export declare function createDataPortrait(originalSvg: string, metadata: DataPortraitMetadata, userAnswer: DataPortraitSurvey, options?: { | ||
interpolationAlgorithm: DataPortraitInterpolationType; | ||
}): string; |
import { createDataPortrait } from './index'; | ||
import type { DataPortraitPointTuple } from './models/geometry'; | ||
import type { DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitCategoricalTuplesQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataCategoricalTuplesQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata } from './models/types'; | ||
import type { DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitSurvey, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitCategoricalTuplesQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataCategoricalTuplesQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata } from './models/types'; | ||
import { DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL_TUPLES, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH } from './constants'; | ||
import { fromStringToSvgNode } from './utils/conversion-utils'; | ||
import { getAllQuestionsNodes, getAllAnswersNodes } from './utils/svg-selector-utils'; | ||
export { createDataPortrait, DataPortraitPointTuple, DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitCategoricalTuplesQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataCategoricalTuplesQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata, DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL_TUPLES, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH, fromStringToSvgNode, getAllQuestionsNodes, getAllAnswersNodes, }; | ||
export { createDataPortrait, DataPortraitPointTuple, DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitSurvey, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitCategoricalTuplesQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataCategoricalTuplesQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata, DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL_TUPLES, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH, fromStringToSvgNode, getAllQuestionsNodes, getAllAnswersNodes, }; |
@@ -5,3 +5,3 @@ import { DATA_PORTRAIT_INTERPOLATION_TYPES, DATA_PORTRAIT_QUESTION_TYPES } from '../constants'; | ||
export type DataPortraitInterpolationType = (typeof DATA_PORTRAIT_INTERPOLATION_TYPES)[number]; | ||
export type DataPortraitAnswer = { | ||
export type DataPortraitSurvey = { | ||
id: string; | ||
@@ -8,0 +8,0 @@ questions: DataPortraitQuestion[]; |
@@ -1,4 +0,4 @@ | ||
import { DataPortraitAnswer, DataPortraitMetadata, DataPortraitQuestion } from '../models/types'; | ||
export declare function addAnswerIdToNodes(idSuffix: DataPortraitAnswer['id'], svgNode: SVGElement): void; | ||
import { DataPortraitSurvey, DataPortraitMetadata, DataPortraitQuestion } from '../models/types'; | ||
export declare function addAnswerIdToNodes(idSuffix: DataPortraitSurvey['id'], svgNode: SVGElement): void; | ||
export declare function getQuestionMetadataById(metadata: DataPortraitMetadata, id: DataPortraitQuestion['id']): import("../models/types").DataPortraitMetadataQuestion | undefined; | ||
export declare function selectMirrorChildNode(userAnswer: DataPortraitAnswer, rootNode: SVGElement, questionId: DataPortraitQuestion['id']): void; | ||
export declare function selectMirrorChildNode(userAnswer: DataPortraitSurvey, rootNode: SVGElement, questionId: DataPortraitQuestion['id']): void; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -15,0 +15,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178459